diff options
Diffstat (limited to 'package/openssl/openssl.mk')
-rw-r--r-- | package/openssl/openssl.mk | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/package/openssl/openssl.mk b/package/openssl/openssl.mk index 0917344af..265a4fbe8 100644 --- a/package/openssl/openssl.mk +++ b/package/openssl/openssl.mk @@ -13,6 +13,15 @@ OPENSSL_DEPENDENCIES = zlib OPENSSL_TARGET_ARCH = generic32 OPENSSL_CFLAGS = $(TARGET_CFLAGS) +ifeq ($(BR2_PACKAGE_OPENSSL_BIN),) +define OPENSSL_DISABLE_APPS + $(SED) '/^build_apps/! s/build_apps//' $(@D)/Makefile.org + $(SED) '/^DIRS=/ s/apps//' $(@D)/Makefile.org +endef +endif + +OPENSSL_PRE_CONFIGURE_HOOKS += OPENSSL_DISABLE_APPS + ifeq ($(BR2_PACKAGE_OPENSSL_OCF),y) OPENSSL_CFLAGS += -DHAVE_CRYPTODEV -DUSE_CRYPTODEV_DIGESTS OPENSSL_DEPENDENCIES += ocf-linux @@ -84,14 +93,6 @@ ifneq ($(BR2_HAVE_DEVFILES),y) OPENSSL_POST_INSTALL_TARGET_HOOKS += OPENSSL_REMOVE_DEV_FILES endif -define OPENSSL_REMOVE_OPENSSL_BIN - rm -f $(TARGET_DIR)/usr/bin/openssl -endef - -ifneq ($(BR2_PACKAGE_OPENSSL_BIN),y) -OPENSSL_POST_INSTALL_TARGET_HOOKS += OPENSSL_REMOVE_OPENSSL_BIN -endif - define OPENSSL_INSTALL_FIXUPS rm -f $(TARGET_DIR)/usr/bin/c_rehash endef |