]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/open-amp.git/blob - obsolete/system/zynq7/linux/make
Move func_test_suite to directly under apps/
[processor-sdk/open-amp.git] / obsolete / system / zynq7 / linux / make
2 include Makefile.commons
4 BOOTSTRAP_OUT := libs/system/zc702evk/linux/firmware
6 BOOTSTRAP_SRC := libs/system/zc702evk/linux/boot.c libs/system/zc702evk/linux/rsc_table.c 
8 AS_SRCFILES   := libs/system/zc702evk/linux/boot_wrapper.S
10 BOOTSTRAPOBJFILES := $(patsubst %.c, %.o, $(BOOTSTRAP_SRC)) $(patsubst %.S, %.o, $(AS_SRCFILES))
12 BOOTSTRAPDEPS   := $(patsubst %.o, %.d, $(BOOTSTRAPOBJFILES))
15 $(BOOTSTRAP_OUT): $(BOOTSTRAPOBJFILES)
17         @echo 'Building linux aggregate image : $@'
19         $(LD)  -nostartfiles -T"$(OHOME)/libs/system/$(MACHINE)/linux/link_remote.ld" -L"$(OHOME)/libs/system/$(MACHINE)/linux/lib/$(CROSS)"  -o "$(BOOTSTRAP_OUT)" -Wl,--start-group $(BOOTSTRAPOBJFILES) -lc -lm -lstdc++ -lzlib -lfdt -Wl,--end-group        
20         
21         @echo 'Copying ELF image to firmware folder'
23         $(CP) $(BOOTSTRAP_OUT) apps/firmware/zc702evk/linux/firmware
24     
25     @echo 'Finished building target: $@'
26         
27 %.o:%.c 
28         @echo CC $(<:.c=.o)
29         @$(CC) $(CFLAGS) $(ARCH_CFLAGS) $(INCLUDE) -c $< -o $@
31 %.o:%.S
32         @echo AS $(<:.S=.o)
33         @$(AS) $(ASFLAGS) $(INCLUDE) $< -o $@
34         
35 clean:
36         -$(RM) $(BOOTSTRAPOBJFILES) $(BOOTSTRAPDEPS) $(BOOTSTRAP_OUT)
37         
38 post-build:
39         -@echo ' '
41 secondary-outputs:
43 PHONY: all clean dependents
44 .SECONDARY: post-build