1 BR2_PACKAGE_LINUX_FORMAT
:=$(strip $(subst ",,$(BR2_PACKAGE_LINUX_FORMAT)))
3 BR2_PACKAGE_LINUX_KCONFIG
:=$(strip $(subst ",,$(BR2_PACKAGE_LINUX_KCONFIG)))
7 # COPY_FILE absolute_path_to_file, target_directory, filename
8 ifneq ($(strip $(subst ",,$(BUILDROOT_COPYTO))),) # Use shell definition
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)" ; \
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)" ; \
21 COPYTO
=$(strip $(subst ",,$(BUILDROOT_COPYTO)))
23 ifneq ($(strip $(subst ",,$(BR2_COPYTO
))),) # Global override
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)" ; \
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)" ; \
39 COPYTO
=$(strip $(subst ",,$(BR2_COPYTO)))
40 else # Package specific copyto, or empty
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)" ; \
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)" ; \
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
70 # and finally build the filesystems/tarballs
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
81 ifeq ($(BR2_KERNEL_LINUX_ADVANCED
),y
)
82 include target
/linux
/Makefile.in.advanced
85 include target
/device
/Makefile.in.linux
87 include target
/hurd
/Makefile.in