diff options
-rw-r--r-- | package/openssl/Makefile | 17 | ||||
-rw-r--r-- | package/u-boot/Makefile | 3 |
2 files changed, 18 insertions, 2 deletions
diff --git a/package/openssl/Makefile b/package/openssl/Makefile index 59032a295..09c82b08a 100644 --- a/package/openssl/Makefile +++ b/package/openssl/Makefile @@ -26,19 +26,22 @@ PKGSS_OPENSSL_UTIL:= libopenssl PKG_FLAVOURS_LIBOPENSSL:= WITH_CRYPTODEV PKGFD_WITH_CRYPTODEV:= enable support for cryptodev-linux +include ${ADK_TOPDIR}/mk/host.mk include ${ADK_TOPDIR}/mk/package.mk +$(eval $(call HOST_template,OPENSSL,openssl,${PKG_VERSION}-${PKG_RELEASE})) $(eval $(call PKG_template,LIBOPENSSL,libopenssl,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},$(PKG_OPTS))) $(eval $(call PKG_template,OPENSSL_UTIL,openssl-util,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_OPENSSL_UTIL},${PKGSD_OPENSSL_UTIL},${PKGSC_OPENSSL_UTIL})) +OPENSSL_OPTIONS:= shared threads no-err no-krb5 zlib-dynamic no-engines no-camellia no-idea no-rc5 no-mdc2 no-sha0 no-smime no-aes192 no-cast + +HOST_STYLE:= manual CONFIG_STYLE:= manual BUILD_STYLE:= manual INSTALL_TARGET:= install_sw FAKE_FLAGS+= INSTALL_PREFIX=${WRKINST} -OPENSSL_OPTIONS:= shared threads no-err no-krb5 zlib-dynamic no-engines no-camellia no-idea no-rc5 no-mdc2 no-sha0 no-smime no-aes192 no-cast - ifneq ($(ADK_PACKAGE_LIBOPENSSL_WITH_CRYPTODEV),) OPENSSL_OPTIONS+= -DHAVE_CRYPTODEV -DUSE_CRYPTODEV_DIGESTS endif @@ -60,6 +63,15 @@ else CONFIG:= linux-embedded endif +host-configure: + (cd $(WRKBUILD); ./config --prefix='$(STAGING_HOST_DIR)/usr') + +host-build: + (cd $(WRKBUILD); make) + +openssl-hostinstall: + (cd $(WRKBUILD); make install) + post-extract: -mkdir -p $(STAGING_TARGET_DIR)/usr/include/crypto $(CP) ./files/cryptodev.h $(STAGING_TARGET_DIR)/usr/include/crypto/ @@ -97,4 +109,5 @@ openssl-util-install: ${CP} ${WRKSRC}/apps/openssl.cnf ${IDIR_OPENSSL_UTIL}/etc/ssl/ chmod 0700 ${IDIR_OPENSSL_UTIL}/etc/ssl/private +include ${ADK_TOPDIR}/mk/host-bottom.mk include ${ADK_TOPDIR}/mk/pkg-bottom.mk diff --git a/package/u-boot/Makefile b/package/u-boot/Makefile index 578b48cb6..079ed4066 100644 --- a/package/u-boot/Makefile +++ b/package/u-boot/Makefile @@ -9,6 +9,7 @@ PKG_RELEASE:= 1 PKG_HASH:= 383051a656ebe11757b17d38a3326387e4a1b0949ca8a9e8ee506bf71dac9fde PKG_DESCR:= portable bootloader PKG_SECTION:= base/boot +HOST_BUILDDEP:= openssl-host PKG_BUILDDEP:= u-boot-host PKG_URL:= http://www.denx.de/wiki/U-Boot PKG_SITES:= ftp://ftp.denx.de/pub/u-boot/ @@ -30,6 +31,8 @@ ifeq ($(ADK_TARGET_SYSTEM_ATMEL_NGW100),y) CONFIG:= atngw100_defconfig endif +HOST_MAKE_FLAGS+= HOSTCFLAGS="$(HOST_CPPFLAGS) $(HOST_CFLAGS)" \ + HOSTLDFLAGS="$(HOST_LDFLAGS) -ldl" HOST_STYLE:= manual CONFIG_STYLE:= manual BUILD_STYLE:= manual |