mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-30 17:03:31 +08:00
package/pkg-golang.mk: postpone evaluation of TARGET_DIR and HOST_DIR
When BR2_PER_PACKAGE_DIRECTORIES=y, $(TARGET_DIR) is evaluated as
$(BASE_DIR)/target, but $$(TARGET_DIR) is evaluated as
$(BASE_DIR)/per-package/$(PKG)_NAME/target.
Signed-off-by: Tian Yuanhao <tianyuanhao@aliyun.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit 8d595c0d92
)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
132d89cb95
commit
80c291079c
@ -121,7 +121,7 @@ endif
|
|||||||
ifndef $(2)_INSTALL_TARGET_CMDS
|
ifndef $(2)_INSTALL_TARGET_CMDS
|
||||||
define $(2)_INSTALL_TARGET_CMDS
|
define $(2)_INSTALL_TARGET_CMDS
|
||||||
$$(foreach d,$$($(2)_INSTALL_BINS),\
|
$$(foreach d,$$($(2)_INSTALL_BINS),\
|
||||||
$(INSTALL) -D -m 0755 $$(@D)/bin/$$(d) $(TARGET_DIR)/usr/bin/$$(d)
|
$(INSTALL) -D -m 0755 $$(@D)/bin/$$(d) $$(TARGET_DIR)/usr/bin/$$(d)
|
||||||
)
|
)
|
||||||
endef
|
endef
|
||||||
endif
|
endif
|
||||||
@ -130,7 +130,7 @@ endif
|
|||||||
ifndef $(2)_INSTALL_CMDS
|
ifndef $(2)_INSTALL_CMDS
|
||||||
define $(2)_INSTALL_CMDS
|
define $(2)_INSTALL_CMDS
|
||||||
$$(foreach d,$$($(2)_INSTALL_BINS),\
|
$$(foreach d,$$($(2)_INSTALL_BINS),\
|
||||||
$(INSTALL) -D -m 0755 $$(@D)/bin/$$(d) $(HOST_DIR)/bin/$$(d)
|
$(INSTALL) -D -m 0755 $$(@D)/bin/$$(d) $$(HOST_DIR)/bin/$$(d)
|
||||||
)
|
)
|
||||||
endef
|
endef
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user