[LEDE-DEV] Makefile
e9hack
e9hack at gmail.com
Sat Mar 17 02:00:56 PDT 2018
Hello,
can I identify within a makefile if a package was selected for including directly in the image or to build as an
external package (select as [*] or [M] during make menuconfig)? Depend on this, I would like to change the installation
path and create an additional symlink, e.g.:
ifeq ($BUILD,M)
$(INSTALL_DIR) $(1)/external/usr/bin
$(CP) $(PKG_BUILD_DIR)/sapi/cli/php $(1)/external/usr/bin/php-cli
ln -sf /external/usr/bin/php-cli $(1)/usr/bin/php-cli
else
$(CP) $(PKG_BUILD_DIR)/sapi/cli/php $(1)/usr/bin/php-cli
endif
Regards,
Hartmut
More information about the Lede-dev
mailing list