[PATCH 3/3] UBUNTU: auto-generate uImage file

Bryan Wu bryan.wu at canonical.com
Tue Jul 13 03:22:49 UTC 2010


From: Sebastien Jan <s-jan at ti.com>

Signed-off-by: Sebastien Jan <s-jan at ti.com>
---
 debian.ti-omap4/control.stub.in |    2 +-
 debian/rules.d/2-binary-arch.mk |    6 ++++++
 2 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/debian.ti-omap4/control.stub.in b/debian.ti-omap4/control.stub.in
index 4762b55..9d5ba50 100644
--- a/debian.ti-omap4/control.stub.in
+++ b/debian.ti-omap4/control.stub.in
@@ -3,7 +3,7 @@ Section: devel
 Priority: optional
 Maintainer: Ubuntu Kernel Team <kernel-team at lists.ubuntu.com>
 Standards-Version: 3.6.1
-Build-Depends: debhelper (>= 3), cpio, module-init-tools, kernel-wedge (>= 2.24ubuntu1), rsync
+Build-Depends: debhelper (>= 3), cpio, module-init-tools, kernel-wedge (>= 2.24ubuntu1), rsync, uboot-mkimage
 Build-Depends-Indep: xmlto, docbook-utils, gs, transfig, bzip2, sharutils
 Build-Conflicts: findutils (= 4.4.1-1ubuntu1)
 Vcs-Git: git://kernel.ubuntu.com/ubuntu/ubuntu-maverick.git
diff --git a/debian/rules.d/2-binary-arch.mk b/debian/rules.d/2-binary-arch.mk
index 4f7b66d..bb4d49d 100644
--- a/debian/rules.d/2-binary-arch.mk
+++ b/debian/rules.d/2-binary-arch.mk
@@ -73,6 +73,12 @@ ifeq ($(no_dumpfile),)
 	makedumpfile -g $(pkgdir)/boot/vmcoreinfo-$(abi_release)-$* \
 		-x $(builddir)/build-$*/vmlinux
 endif
+	# Generate uImage automatically out of the box
+	mkimage -A arm -O linux -T kernel -C none -a 0x80008000 \
+		-e 0x80008000 -n "Ubuntu Kernel" \
+		-d $(pkgdir)/boot/$(install_file)-$(abi_release)-$* \
+		$(pkgdir)/boot/uImage-$(abi_release)-$*
+
 
 	$(build_cd) $(kmake) $(build_O) modules_install \
 		INSTALL_MOD_STRIP=1 INSTALL_MOD_PATH=$(pkgdir)/ \
-- 
1.7.0.4





More information about the kernel-team mailing list