mmc-utils: use upstream provided install target
PATCH 1/1 mmc-utils: use upstream provided install target
Cc S?bastien Szymanski <[email protected]>
Signed-off-by Baruch Siach <[email protected]>
--- package/mmc-utils/mmc-utils.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/mmc-utils/mmc-utils.mk +1 -1
@@ -13,7 +13,7 @@ define MMC_UTILS_BUILD_CMDS endef define MMC_UTILS_INSTALL_TARGET_CMDS - $(INSTALL) -D -m 0755 $(@D)/mmc $(TARGET_DIR)/usr/bin/mmc + prefix=$(TARGET_DIR) $(MAKE) -C $(@D) install endef $(eval $(generic-package))
Signature · 1 line
2.14.1
PATCH 1/1 mmc-utils: use upstream provided install target
Hello,
package/mmc-utils/mmc-utils.mk define MMC_UTILS_BUILD_CMDS · line 17
Quoted 4 lines · Baruch Siach
define
MMC_UTILS_INSTALL_TARGET_CMDSpackage/mmc-utils/mmc-utils.mk +1
-1- $(INSTALL) -D -m 0755 $(@D)/mmc $(TARGET_DIR)/usr/bin/mmc + prefix=$(TARGET_DIR) $(MAKE) -C $(@D) install endef
This is not entirely correct, for a few reasons: first, your patch introduces a difference as the "mmc" program is now installed in /bin/mmc and not /usr/bin/mmc, which isn't nice.
Also, it mis-uses prefix, as DESTDIR should be used. The correct use is prefix=/usr (to override the default of /usr/local) and DESTDIR=$(TARGET_DIR).
Best regards,
Thomas Petazzoni
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com