summaryrefslogtreecommitdiffstats
path: root/package/genromfs
diff options
context:
space:
mode:
authorArnout Vandecappelle <arnout@mind.be>2017-07-05 13:14:40 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-07-05 16:06:38 +0200
commit40c560469f525bad7899694b729f60807a8165d4 (patch)
tree4ea97525fd85236b505f68b907876f5224f05973 /package/genromfs
parenta82680a61871f5fb96e307a1dfb28a0a330e98d3 (diff)
downloadbuildroot-40c560469f525bad7899694b729f60807a8165d4.tar.gz
buildroot-40c560469f525bad7899694b729f60807a8165d4.zip
genromfs: use $(HOST_DIR) instead of $(HOST_DIR)/usr as prefix
genromfs is special because it uses "PREFIX" in the meaning of DESTDIR and "prefix" in the meaning of prefix. We were up to know using it incorrectly for host: PREFIX shouldn't be set and only prefix should be set. Add an explanatory comment for this unusual behaviour. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/genromfs')
-rw-r--r--package/genromfs/genromfs.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/package/genromfs/genromfs.mk b/package/genromfs/genromfs.mk
index 3025550637..fd696b45b2 100644
--- a/package/genromfs/genromfs.mk
+++ b/package/genromfs/genromfs.mk
@@ -16,6 +16,8 @@ define GENROMFS_BUILD_CMDS
LDFLAGS="$(TARGET_LDFLAGS)"
endef
+# "PREFIX" is the equivalent of DESTDIR in autotools, "prefix" is the
+# traditional prefix. "prefix" defaults to /usr so no need to set it.
define GENROMFS_INSTALL_TARGET_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) PREFIX=$(TARGET_DIR) install
endef
@@ -25,7 +27,7 @@ define HOST_GENROMFS_BUILD_CMDS
endef
define HOST_GENROMFS_INSTALL_CMDS
- $(HOST_MAKE_ENV) $(MAKE) -C $(@D) PREFIX=$(HOST_DIR) install
+ $(HOST_MAKE_ENV) $(MAKE) -C $(@D) prefix=$(HOST_DIR) install
endef
$(eval $(generic-package))
OpenPOWER on IntegriCloud