summaryrefslogtreecommitdiff
path: root/packages/linux
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2007-08-21 20:28:15 +0000
committerKoen Kooi <koen@openembedded.org>2007-08-21 20:28:15 +0000
commiteec1fc3ecc7bcf393ec73cd1cd8f1c400039d53e (patch)
treec35001590d859913d6826f2507cc6a8ef5a88a54 /packages/linux
parent878334ee57dd75727547daba08ee4315d75bc506 (diff)
gumstix: make uboot entry point overridable per machine
Diffstat (limited to 'packages/linux')
-rw-r--r--packages/linux/linux.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/linux/linux.inc b/packages/linux/linux.inc
index e4e7a3f1bb..de4b2cc5a8 100644
--- a/packages/linux/linux.inc
+++ b/packages/linux/linux.inc
@@ -59,6 +59,8 @@ do_install_prepend() {
fi
}
+UBOOT_ENTRYPOINT ?= "20008000"
+
do_deploy() {
install -d ${DEPLOY_DIR_IMAGE}
install -m 0644 arch/${ARCH}/boot/${KERNEL_IMAGETYPE} ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${PV}-${PR}-${MACHINE}-${DATETIME}.bin
@@ -68,7 +70,7 @@ do_deploy() {
${OBJCOPY} -O binary -R .note -R .comment -S vmlinux linux.bin
rm -f linux.bin.gz
gzip -9 linux.bin
- uboot-mkimage -A ${ARCH} -O linux -T kernel -C gzip -a 20008000 -e 20008000 -n "${DISTRO_NAME} Kernel for ${MACHINE}" -d linux.bin.gz ${DEPLOY_DIR_IMAGE}/uImage-${PV}-${PR}-${MACHINE}-${DATETIME}.bin
+ uboot-mkimage -A ${ARCH} -O linux -T kernel -C gzip -a ${UBOOT_ENTRYPOINT} -e ${UBOOT_ENTRYPOINT} -n "${DISTRO_NAME} Kernel for ${MACHINE}" -d linux.bin.gz ${DEPLOY_DIR_IMAGE}/uImage-${PV}-${PR}-${MACHINE}-${DATETIME}.bin
rm -f linux.bin.gz
fi
}