4 boot_fn_SOURCES = boot_fn.o
8 boot_SOURCES = boot.c boot_fn.o
10 #link_VARIANTS = ram flash
14 lib_obj_SOURCES = crt0.S boot_fn.o
16 include_HEADERS = boot_fn.h
18 default_CONFIG = CONFIG_PIC_BOOT_FN=y
20 ifeq ($(CONFIG_PIC_BOOT_FN),y)
21 # The following is for non-standard compilation of boot_fn
23 $(call COMPILE_c_o_template,$(SOURCES_DIR)/boot_fn.c,boot_fn.s1,-fpic -S)
24 $(call COMPILE_S_o_template,boot_fn.s,boot_fn.o,-fpic -c)
27 # This rule replaces jsr instructions by bsr ones which are relative
29 boot_fn.s : boot_fn.s1
30 @$(QUIET_CMD_ECHO) " SED $@"
31 $(Q) sed 's/jsr[^0-9_A-Za-z]*@_\([0-9_A-Za-z]*\)\([^0-9_A-Za-z]*\)/bsr _\1:16\2/g' <$< >$@
34 @rm boot_fn.s1 boot_fn.s
36 USER_SOURCES += boot_fn.c
37 endif # CONFIG_PIC_BOOT_FN