mirror of
https://github.com/LiBwrt-op/openwrt-6.x.git
synced 2025-12-17 09:16:59 +00:00
build: add support for host building in a subdirectory
Add HOST_MAKE_PATH and use it in order to execute Make in a subdirectory of the build directory and in a similar way that MAKE_PATH is used for target building. Signed-off-by: Michael Pratt <mcpratt@pm.me>
This commit is contained in:
parent
992e9ec072
commit
701b5095f0
@ -111,9 +111,11 @@ define Host/Configure
|
|||||||
$(call Host/Configure/Default)
|
$(call Host/Configure/Default)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
HOST_MAKE_PATH ?= .
|
||||||
|
|
||||||
define Host/Compile/Default
|
define Host/Compile/Default
|
||||||
+$(HOST_MAKE_VARS) \
|
+$(HOST_MAKE_VARS) \
|
||||||
$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) \
|
$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR)/$(HOST_MAKE_PATH) \
|
||||||
$(HOST_MAKE_FLAGS) \
|
$(HOST_MAKE_FLAGS) \
|
||||||
$(1)
|
$(1)
|
||||||
endef
|
endef
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user