mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-31 08:25:29 +00:00
include: remove SDK specific target from toplevel.mk
Instead introduce a generic "make prepare" target which is executed if include/prepare.mk exists. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 44329
This commit is contained in:
parent
fd53d49f5b
commit
1a27d74827
@ -136,13 +136,19 @@ kernel_menuconfig: prepare_kernel_conf
|
|||||||
kernel_nconfig: prepare_kernel_conf
|
kernel_nconfig: prepare_kernel_conf
|
||||||
$(_SINGLE)$(NO_TRACE_MAKE) -C target/linux nconfig
|
$(_SINGLE)$(NO_TRACE_MAKE) -C target/linux nconfig
|
||||||
|
|
||||||
tmp/.prereq-build: $(if $(SDK),.git/config) include/prereq-build.mk
|
tmp/.prereq-build: include/prereq-build.mk
|
||||||
mkdir -p tmp
|
mkdir -p tmp
|
||||||
rm -f tmp/.host.mk
|
rm -f tmp/.host.mk
|
||||||
@$(_SINGLE)$(NO_TRACE_MAKE) -j1 -r -s -f $(TOPDIR)/include/prereq-build.mk prereq 2>/dev/null || { \
|
@$(_SINGLE)$(NO_TRACE_MAKE) -j1 -r -s -f $(TOPDIR)/include/prereq-build.mk prereq 2>/dev/null || { \
|
||||||
echo "Prerequisite check failed. Use FORCE=1 to override."; \
|
echo "Prerequisite check failed. Use FORCE=1 to override."; \
|
||||||
false; \
|
false; \
|
||||||
}
|
}
|
||||||
|
ifneq ($(realpath $(TOPDIR)/include/prepare.mk),)
|
||||||
|
@$(_SINGLE)$(NO_TRACE_MAKE) -j1 -r -s -f $(TOPDIR)/include/prepare.mk prepare 2>/dev/null || { \
|
||||||
|
echo "Preparation failed."; \
|
||||||
|
false; \
|
||||||
|
}
|
||||||
|
endif
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
printdb: FORCE
|
printdb: FORCE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user