summaryrefslogtreecommitdiff
path: root/package/base-files/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-01-27 22:45:38 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2015-01-27 22:46:04 +0100
commit058eb9f410843b8627626a13be2fdda5ba107343 (patch)
treedda62f7a0b00d3fc42b8c38d0b51c6519e64df76 /package/base-files/Makefile
parent2db43efa7c6f864d8f0e1099e6ccde4883917201 (diff)
add basic support for opkg, update to latest stable
Diffstat (limited to 'package/base-files/Makefile')
-rw-r--r--package/base-files/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/package/base-files/Makefile b/package/base-files/Makefile
index b447b643b..0e3c27b3e 100644
--- a/package/base-files/Makefile
+++ b/package/base-files/Makefile
@@ -35,6 +35,15 @@ ifeq (${ADK_TARGET_PACKAGE_IPKG},y)
$(SED) 's,@VENDOR@,$(ADK_VENDOR),g' $(IDIR_BASE_FILES)/etc/ipkg.conf
mkdir -p $(IDIR_BASE_FILES)/usr/lib/ipkg/lists
endif
+ifeq (${ADK_TARGET_PACKAGE_OPKG},y)
+ $(CP) ./files/ipkg.conf $(IDIR_BASE_FILES)/etc/
+ $(SED) 's,@ARCH@,$(ADK_TARGET_CPU_ARCH),g' $(IDIR_BASE_FILES)/etc/ipkg.conf
+ $(SED) 's,@SYSTEM@,$(ADK_TARGET_SYSTEM),g' $(IDIR_BASE_FILES)/etc/ipkg.conf
+ $(SED) 's,@LIBC@,$(ADK_TARGET_LIBC),g' $(IDIR_BASE_FILES)/etc/ipkg.conf
+ $(SED) 's,@HOST@,$(ADK_HOST),g' $(IDIR_BASE_FILES)/etc/ipkg.conf
+ $(SED) 's,@VENDOR@,$(ADK_VENDOR),g' $(IDIR_BASE_FILES)/etc/ipkg.conf
+ mkdir -p $(IDIR_BASE_FILES)/usr/lib/opkg/lists
+endif
echo /bin/sh >${IDIR_BASE_FILES}/etc/shells
echo /bin/mksh >>${IDIR_BASE_FILES}/etc/shells
ifneq (${ADK_PACKAGE_ASH},)