mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-19 16:40:46 -09: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:
committed by
Peter Korsgaard
parent
3df036c745
commit
f9e0f044c4
@@ -141,7 +141,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
|
||||||
@@ -150,7 +150,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
|
||||||
|
|||||||
Reference in New Issue
Block a user