diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2010-06-29 17:45:03 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-06-29 17:45:03 +0200 |
commit | 36c8c2eb53bf2fb400f138b2177bea2fe0651d12 (patch) | |
tree | ef72f47c4bdeb175fe38184a87e66502b87e442d /mk/image.mk | |
parent | 2fd97804d7094633451c3fb0ac2ac41d88229c16 (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 'mk/image.mk')
-rw-r--r-- | mk/image.mk | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/mk/image.mk b/mk/image.mk index ef0a626e0..4713d621d 100644 --- a/mk/image.mk +++ b/mk/image.mk @@ -52,14 +52,26 @@ image-prepare-post: done; \ fi +KERNEL_PKGDIR:=$(LINUX_BUILD_DIR)/kernel-pkg +KERNEL_PKG:=$(PACKAGE_DIR)/kernel_$(ADK_TARGET)-$(KERNEL_VERSION)_$(CPU_ARCH).$(PKG_SUFFIX) + +kernel-package: $(LINUX_DIR)/vmlinux + $(TRACE) target/$(ADK_TARGET)-create-kernel-package + rm -rf $(KERNEL_PKGDIR) + @mkdir -p $(KERNEL_PKGDIR)/boot + cp $(KERNEL) $(KERNEL_PKGDIR)/boot/vmlinuz-adk + ${BASH} ${SCRIPT_DIR}/make-ipkg-dir.sh ${KERNEL_PKGDIR} \ + ../linux/kernel.control ${ADK_TARGET}-${KERNEL_VERSION} ${CPU_ARCH} + $(PKG_BUILD) $(KERNEL_PKGDIR) $(PACKAGE_DIR) + $(PKG_INSTALL) $(KERNEL_PKG) + INITRAMFS= ${ADK_TARGET}-${ADK_LIBC}-${FS} ROOTFSSQUASHFS= ${ADK_TARGET}-${ADK_LIBC}-${FS}.img ROOTFSTARBALL= ${ADK_TARGET}-${ADK_LIBC}-${FS}+kernel.tar.gz ROOTFSUSERTARBALL= ${ADK_TARGET}-${ADK_LIBC}-${FS}.tar.gz INITRAMFS_PIGGYBACK= ${ADK_TARGET}-${ADK_LIBC}-${FS}.cpio -${BIN_DIR}/${ROOTFSTARBALL}: ${TARGET_DIR} - cp $(KERNEL) $(TARGET_DIR)/boot/vmlinuz-adk +${BIN_DIR}/${ROOTFSTARBALL}: ${TARGET_DIR} kernel-package cd ${TARGET_DIR}; tar -cf - --owner=0 --group=0 . | gzip -n9 >$@ ${BIN_DIR}/${ROOTFSUSERTARBALL}: ${TARGET_DIR} |