summaryrefslogtreecommitdiff
path: root/package/base-files
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-06-29 17:45:03 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2010-06-29 17:45:03 +0200
commit36c8c2eb53bf2fb400f138b2177bea2fe0651d12 (patch)
treeef72f47c4bdeb175fe38184a87e66502b87e442d /package/base-files
parent2fd97804d7094633451c3fb0ac2ac41d88229c16 (diff)
optimize ipkg package management
ipkg will automatically mount the normal read-only rootfs as read-write and after the command back to read-only. ipkg install/remove/upgrades are only supported for compact disk or disk based systems. On flash systems better reflash completely. make a kernel package containing the real kernel. Adjust ipkg.conf to contain a configurable server adress.
Diffstat (limited to 'package/base-files')
-rw-r--r--package/base-files/Makefile9
-rw-r--r--package/base-files/src/etc/ipkg.conf2
2 files changed, 4 insertions, 7 deletions
diff --git a/package/base-files/Makefile b/package/base-files/Makefile
index 34807d6a0..26daf87e9 100644
--- a/package/base-files/Makefile
+++ b/package/base-files/Makefile
@@ -6,7 +6,7 @@ include $(TOPDIR)/mk/rootfs.mk
PKG_NAME:= base-files
PKG_VERSION:= 1.0
-PKG_RELEASE:= 11
+PKG_RELEASE:= 12
PKG_DESCR:= basic filesystem structure and scripts
PKG_SECTION:= base
@@ -31,12 +31,9 @@ do-install:
ifeq (${ADK_TARGET_ROOTFS_NFSROOT},y)
@-rm $(IDIR_BASE_FILES)/etc/network/interfaces
endif
-ifeq (${ADK_TARGET_PACKAGE_IPKG},y)
$(SED) 's,@TARGET@,$(ADK_TARGET),g' $(IDIR_BASE_FILES)/etc/ipkg.conf
- $(SED) 's,@VERSION@,$(ADK_VERSION),g' $(IDIR_BASE_FILES)/etc/ipkg.conf
-else
- @-rm $(IDIR_BASE_FILES)/etc/ipkg.conf
-endif
+ $(SED) 's,@HOST@,$(ADK_HOST),g' $(IDIR_BASE_FILES)/etc/ipkg.conf
+ $(SED) 's,@LIBC@,$(ADK_LIBC),g' $(IDIR_BASE_FILES)/etc/ipkg.conf
echo /bin/sh >${IDIR_BASE_FILES}/etc/shells
echo /bin/ash >>${IDIR_BASE_FILES}/etc/shells
ifneq (${ADK_PACKAGE_BASH},)
diff --git a/package/base-files/src/etc/ipkg.conf b/package/base-files/src/etc/ipkg.conf
index 6c9242620..452079766 100644
--- a/package/base-files/src/etc/ipkg.conf
+++ b/package/base-files/src/etc/ipkg.conf
@@ -1,3 +1,3 @@
-src openadk http://www.openadk.org/packages/@TARGET@
+src openadk http://@HOST@/@TARGET@_@LIBC@/packages
dest root /
dest ram /tmp