aboutsummaryrefslogtreecommitdiff
path: root/meta-linaro/recipes-kernel/linux/bootwrapper.inc
diff options
context:
space:
mode:
authorRiku Voipio <riku.voipio@linaro.org>2014-03-21 16:12:52 +0200
committerRiku Voipio <riku.voipio@linaro.org>2014-03-27 10:59:07 +0200
commit3b25379f74b21c0db3a95c6a3009469b8b8e3b01 (patch)
treed2952cca7171eee1e56382aaaa433aa8100cb497 /meta-linaro/recipes-kernel/linux/bootwrapper.inc
parentb9fed396b98e58236f9b809fb88e721e1d072b51 (diff)
downloadmeta-linaro-3b25379f74b21c0db3a95c6a3009469b8b8e3b01.tar.gz
linaro kernel: pick conf frags from ubuntu-ci
Major reformatting of recipes to pick conf frags from ubuntu-ci. Also removed autorevs and cleaned up bootwrapper building. Change-Id: I9e65941c42c020f5d0f56ab810ae87ed61929e89 Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Diffstat (limited to 'meta-linaro/recipes-kernel/linux/bootwrapper.inc')
-rw-r--r--meta-linaro/recipes-kernel/linux/bootwrapper.inc52
1 files changed, 52 insertions, 0 deletions
diff --git a/meta-linaro/recipes-kernel/linux/bootwrapper.inc b/meta-linaro/recipes-kernel/linux/bootwrapper.inc
new file mode 100644
index 00000000..99cc6584
--- /dev/null
+++ b/meta-linaro/recipes-kernel/linux/bootwrapper.inc
@@ -0,0 +1,52 @@
+SRC_URI_append= " git://git.kernel.org/pub/scm/linux/kernel/git/cmarinas/boot-wrapper-aarch64.git;protocol=http;branch=master;name=bootwrapper;destsuffix=bootwrapper \
+"
+
+SRCREV_bootwrapper = "4266507a84f8c06452109d38e0350d4759740694"
+BW = "${WORKDIR}/bootwrapper"
+DTBDIR="${S}/arch/arm64/boot/dts/"
+
+do_compile_append() {
+ cd ${S}
+ oe_runmake dtbs
+ cd ${BW}
+ autoreconf -vfi
+ ./configure --host=aarch64-linux-gnu \
+ --with-kernel-dir="${S}" \
+ --with-cmdline="${BOOTARGS_COMMON} root=/dev/vda"
+ make IMAGE=linux-system-foundation.axf clean
+ make DTC=${S}/scripts/dtc/dtc \
+ KERNEL_DTB="${DTBDIR}/foundation-v8.dtb" \
+ IMAGE=linux-system-foundation.axf
+ make IMAGE=img-foundation.axf clean
+ ./configure --host=aarch64-linux-gnu \
+ --with-kernel-dir="${S}" \
+ --with-cmdline="${BOOTARGS_COMMON} root=/dev/vda2"
+ make DTC=${S}/scripts/dtc/dtc \
+ KERNEL_DTB="${DTBDIR}/foundation-v8.dtb" \
+ IMAGE=img-foundation.axf
+ make IMAGE=img.axf clean
+ ./configure --host=aarch64-linux-gnu \
+ --with-kernel-dir="${S}" \
+ --with-cmdline="${BOOTARGS_COMMON} root=/dev/mmcblk0p2"
+ make DTC=${S}/scripts/dtc/dtc \
+ KERNEL_DTB="${DTBDIR}/rtsm_ve-aemv8a.dtb" \
+ IMAGE=img.axf
+}
+
+do_install_append() {
+ install -m 0644 ${BW}/img-foundation.axf ${D}/boot/img-foundation.axf
+}
+
+do_deploy_append() {
+ install -d ${DEPLOYDIR}
+ install -m 0644 ${BW}/img.axf ${DEPLOYDIR}/img-${PV}.axf
+ install -m 0644 ${BW}/linux-system-foundation.axf ${DEPLOYDIR}/linux-system-foundation-${PV}.axf
+ install -m 0644 ${BW}/img-foundation.axf ${DEPLOYDIR}/img-foundation-${PV}.axf
+ cd ${DEPLOYDIR}
+ ln -sf img-${PV}.axf img.axf
+ ln -sf linux-system-foundation-${PV}.axf linux-system-foundation.axf
+ ln -sf img-foundation-${PV}.axf img-foundation.axf
+}
+
+PACKAGES =+ "kernel-bootwrapper"
+FILES_kernel-bootwrapper = "/boot/img-foundation.axf"