fix compile errors with make 3.80
SVN-Revision: 8230
This commit is contained in:
parent
e23c6c4b6b
commit
f1ac6cf7ec
3 changed files with 8 additions and 5 deletions
|
@ -25,6 +25,11 @@ endef
|
||||||
|
|
||||||
SUBTARGETS:=clean download prepare compile install update refresh prereq
|
SUBTARGETS:=clean download prepare compile install update refresh prereq
|
||||||
|
|
||||||
|
define subtarget
|
||||||
|
$(call warn_eval,$(1),t,T,$(1)/$(2): $($(1)/) $(foreach bd,$(if $($(1)/builddirs-$(2)),$($(1)/builddirs-$(2)),$($(1)/builddirs)),$(1)/$(bd)/$(2)))
|
||||||
|
|
||||||
|
endef
|
||||||
|
|
||||||
# Parameters: <subdir>
|
# Parameters: <subdir>
|
||||||
define subdir
|
define subdir
|
||||||
$(call warn,$(1),d,D $(1))
|
$(call warn,$(1),d,D $(1))
|
||||||
|
@ -38,9 +43,7 @@ define subdir
|
||||||
$(call warn_eval,$(1)/$(bd),l,T,$(1)/$(bd)-$(target): $(1)/$(bd)/$(target))
|
$(call warn_eval,$(1)/$(bd),l,T,$(1)/$(bd)-$(target): $(1)/$(bd)/$(target))
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
$(foreach target,$(SUBTARGETS),
|
$(foreach target,$(SUBTARGETS),$(call subtarget,$(1),$(target)))
|
||||||
$(call warn_eval,$(1),t,T,$(1)/$(target): $($(1)/) $(foreach bd,$(if $($(1)/builddirs-$(target)),$($(1)/builddirs-$(target)),$($(1)/builddirs)),$(1)/$(bd)/$(target)) ;)
|
|
||||||
)
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
# Parameters: <subdir> <name>
|
# Parameters: <subdir> <name>
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
# Main makefile for the toolchain
|
# Main makefile for the toolchain
|
||||||
#
|
#
|
||||||
file:=${lastword ${MAKEFILE_LIST}}
|
file:=${lastword ${MAKEFILE_LIST}}
|
||||||
curdir:=$(patsubst %/Makefile,%,${file})
|
curdir:=toolchain
|
||||||
|
|
||||||
# subdirectories to descend into
|
# subdirectories to descend into
|
||||||
$(curdir)/builddirs := kernel-headers $(if $(CONFIG_GDB),gdb) $(if $(CONFIG_NATIVE_TOOLCHAIN),,binutils gcc uClibc)
|
$(curdir)/builddirs := kernel-headers $(if $(CONFIG_GDB),gdb) $(if $(CONFIG_NATIVE_TOOLCHAIN),,binutils gcc uClibc)
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
file:=${lastword ${MAKEFILE_LIST}}
|
file:=${lastword ${MAKEFILE_LIST}}
|
||||||
curdir:=$(patsubst %/Makefile,%,${file})
|
curdir:=tools
|
||||||
|
|
||||||
# subdirectories to descend into
|
# subdirectories to descend into
|
||||||
$(curdir)/builddirs := sed sstrip ipkg-utils ext2fs squashfs mtd-utils lzma mkimage firmware-utils patch-cmdline $(if $(CONFIG_CCACHE),ccache)
|
$(curdir)/builddirs := sed sstrip ipkg-utils ext2fs squashfs mtd-utils lzma mkimage firmware-utils patch-cmdline $(if $(CONFIG_CCACHE),ccache)
|
||||||
|
|
Loading…
Reference in a new issue