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

_______________________________________________
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev

Reply via email to