summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package/opkg/Makefile20
-rw-r--r--target/config/Config.in.target1
-rw-r--r--target/config/Config.in.tools9
3 files changed, 24 insertions, 6 deletions
diff --git a/package/opkg/Makefile b/package/opkg/Makefile
index 1cc0a4818..cf601abc7 100644
--- a/package/opkg/Makefile
+++ b/package/opkg/Makefile
@@ -4,12 +4,13 @@
include $(ADK_TOPDIR)/rules.mk
PKG_NAME:= opkg
-PKG_VERSION:= 0.2.4
+PKG_VERSION:= 0.3.1
PKG_RELEASE:= 1
-PKG_HASH:= 0f40c7e457d81edf9aedc07c778f4697111ab163a38ef95999faece015453086
+PKG_HASH:= d2c6c02a8384ec21168a1f0a186cb5e9f577d1452f491d02ed3e56b2ea8b87df
PKG_DESCR:= embedded package manager
-PKG_DEPENDS:= libcurl
-PKG_BUILDDEP:= curl
+PKG_DEPENDS:= libcurl libarchive gpgme
+PKG_BUILDDEP:= curl libarchive gpgme
+HOST_BUILDDEP:= libarchive-host curl-host
PKG_NEEDS:= threads
PKG_SECTION:= sys/misc
PKG_URL:= https://code.google.com/p/opkg/
@@ -17,13 +18,19 @@ PKG_SITES:= http://downloads.yoctoproject.org/releases/opkg/
DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
+include $(ADK_TOPDIR)/mk/host.mk
include $(ADK_TOPDIR)/mk/package.mk
+$(eval $(call HOST_template,OPKG,opkg,$(PKG_VERSION)-${PKG_RELEASE}))
$(eval $(call PKG_template,OPKG,opkg,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+AUTOTOOL_STYLE:= autogen
+HOST_CONFIGURE_ARGS+= --disable-openssl \
+ --disable-gpg \
+ --disable-ssl-curl
CONFIGURE_ARGS+= --disable-openssl \
- --disable-ssl-curl \
- --disable-gpg
+ --enable-gpg \
+ --disable-ssl-curl
opkg-install:
$(INSTALL_DIR) $(IDIR_OPKG)/usr/bin
@@ -33,4 +40,5 @@ opkg-install:
$(INSTALL_BIN) $(WRKINST)/usr/bin/opkg* \
$(IDIR_OPKG)/usr/bin
+include ${ADK_TOPDIR}/mk/host-bottom.mk
include ${ADK_TOPDIR}/mk/pkg-bottom.mk
diff --git a/target/config/Config.in.target b/target/config/Config.in.target
index 920d709cc..4f8b95c04 100644
--- a/target/config/Config.in.target
+++ b/target/config/Config.in.target
@@ -216,6 +216,7 @@ config ADK_TARGET_PACKAGE_IPKG
config ADK_TARGET_PACKAGE_OPKG
bool "opkg"
select ADK_PACKAGE_OPKG
+ select ADK_HOST_NEED_OPKG
help
Create opkg packages and use opkg package management on the target.
diff --git a/target/config/Config.in.tools b/target/config/Config.in.tools
index fb8e44d42..62f48ca0b 100644
--- a/target/config/Config.in.tools
+++ b/target/config/Config.in.tools
@@ -193,6 +193,15 @@ config ADK_HOST_BUILD_PATCHELF
bool
default n
+config ADK_HOST_NEED_OPKG
+ bool
+ default n
+
+config ADK_HOST_BUILD_OPKG
+ bool
+ default y if ADK_HOST_NEED_OPKG
+ default n
+
config ADK_HOST_NEED_SQUASHFS
bool
default n