Merge branch 'qtopia-fixes' of git://git.busybox.net/~tpetazzoni/git/buildroot
[avatt.git] / target / Makefile.in
blobb1450413e50cdd78a76b37984018d99221a33a1a
1 BR2_PACKAGE_LINUX_FORMAT:=$(strip $(subst ",,$(BR2_PACKAGE_LINUX_FORMAT)))
2 #"))
3 BR2_PACKAGE_LINUX_KCONFIG:=$(strip $(subst ",,$(BR2_PACKAGE_LINUX_KCONFIG)))
4 #"))
7 # COPY_FILE absolute_path_to_file, target_directory, filename
8 ifneq ($(strip $(subst ",,$(BUILDROOT_COPYTO))),) # Use shell definition
9 #"))
10 define COPY_FILE
11 @echo "BUILDROOT_COPYTO: Copy to $(BUILDROOT_COPYTO)/$(strip $(3))" ; \
12 mkdir -p $(BINARIES_DIR) || echo "Could not create $(BINARIES_DIR)" ; \
13 if [ -w $(BINARIES_DIR) -o -w $(BINARIES_DIR) ] ; then \
14 cp $(1) $(BINARIES_DIR)/$(strip $(3)) || echo "Could not copy $(3)" ; \
15 fi ; \
16 mkdir -p $(BUILDROOT_COPYTO) || echo "Could not create $(BUILDROOT_COPYTO)" ; \
17 if [ -d $(BUILDROOT_COPYTO) -o -w $(BUILDROOT_COPYTO) ] ; then \
18 cp $(1) $(BUILDROOT_COPYTO)/$(strip $(3)) || echo "Could not copy $(3)" ; \
20 endef
21 COPYTO=$(strip $(subst ",,$(BUILDROOT_COPYTO)))
22 else
23 ifneq ($(strip $(subst ",,$(BR2_COPYTO))),) # Global override
24 #"))
25 define COPY_FILE
26 @echo "BR2_COPYTO: Copy to $(BR2_COPYTO)/$(strip $(3))" ; \
27 mkdir -p $(BINARIES_DIR) || echo "Could not create $(BINARIES_DIR)" ; \
28 if [ -w $(BINARIES_DIR) -o -w $(BINARIES_DIR) ] ; then \
29 cp $(1) $(BINARIES_DIR)/$(strip $(3)) || echo "Could not copy $(3)" ; \
30 fi ; \
31 if [ "$(strip $(subst ",,$(BR2_COPYTO)))X" != "X" ] ; then \
32 mkdir -p $(BR2_COPYTO) || echo "Could not create $(BR2_COPYTO)" ; \
33 if [ -d $(BR2_COPYTO) -o -w $(BR2_COPYTO) ] ; then \
34 cp $(1) $(BR2_COPYTO)/$(strip $(3)) || echo "Could not copy $(3)" ; \
35 fi ; \
37 endef
38 #"))
39 COPYTO=$(strip $(subst ",,$(BR2_COPYTO)))
40 else # Package specific copyto, or empty
41 define COPY_FILE
42 @echo "Copy to $(2)/$(strip $(3))" ; \
43 mkdir -p $(BINARIES_DIR) || echo "Could not create $(BINARIES_DIR)" ; \
44 if [ -w $(BINARIES_DIR) -o -w $(BINARIES_DIR) ] ; then \
45 cp $(1) $(BINARIES_DIR)/$(strip $(3)) || echo "Could not copy $(3)" ; \
46 fi ; \
47 if [ "$(strip $(subst ",,$(2)))X" != "X" ] ; then \
48 mkdir -p $(2) || echo "Could not create $(2)" ; \
49 if [ -d $(2) -o -w $(2) ] ; then \
50 cp $(1) $(2)/$(strip $(3)) || echo "Could not copy $(3)" ; \
51 fi ; \
53 endef
54 #"))
55 endif
56 endif
58 # make sure to put everything that is board-specific before the tarroot targets
59 include target/generic/Makefile.in
61 # this eventually adds the kernel target to TARGETS:
62 include target/device/Makefile.in
63 include target/x86/Makefile.in
64 include target/powerpc/Makefile.in
66 ifeq ($(BR2_TARGET_UBOOT),y)
67 include target/u-boot/Makefile.in
68 endif
70 # and finally build the filesystems/tarballs
71 include target/*/*.mk
73 # kernel rules
74 # We already did add the kernel target to TARGETS and now just pull in the rules
75 # to actually build this target.
77 ifeq ($(BR2_KERNEL_LINUX),y)
78 include target/linux/Makefile.in
79 endif
81 ifeq ($(BR2_KERNEL_LINUX_ADVANCED),y)
82 include target/linux/Makefile.in.advanced
83 endif
85 include target/device/Makefile.in.linux
87 include target/hurd/Makefile.in