summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2015-10-11 09:56:28 +0000
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2015-10-13 17:16:00 +0000
commit2f574c76be65aebc0a2da57ea04d1df37019f247 (patch)
treead2116781d3d09573946745c6099535d47f160e6
parent0d7bc281923e6a8b40b332fc0915d8472deea977 (diff)
downloaddefinitions-2f574c76be65aebc0a2da57ea04d1df37019f247.tar.gz
Compile u-boot too
-rw-r--r--strata/bsp-rpi2.morph5
-rw-r--r--strata/bsp-rpi2/u-boot@rpi2.morph11
2 files changed, 16 insertions, 0 deletions
diff --git a/strata/bsp-rpi2.morph b/strata/bsp-rpi2.morph
index d6f91f6a..e060ad82 100644
--- a/strata/bsp-rpi2.morph
+++ b/strata/bsp-rpi2.morph
@@ -34,3 +34,8 @@ chunks:
morph: strata/bsp-rpi2/linux-firmware-rpi2.morph
ref: d82d3c1e5eddb811a38513a7e5b33202773f0fff
unpetrify-ref: master
+- name: u-boot@rpi2
+ morph: strata/bsp-rpi2/u-boot@rpi2.morph
+ repo: upstream:u-boot
+ ref: f33cdaa4c3da4a8fd35aa2f9a3172f31cc887b35
+ unpetrify-ref: v2015.04
diff --git a/strata/bsp-rpi2/u-boot@rpi2.morph b/strata/bsp-rpi2/u-boot@rpi2.morph
new file mode 100644
index 00000000..a674c76f
--- /dev/null
+++ b/strata/bsp-rpi2/u-boot@rpi2.morph
@@ -0,0 +1,11 @@
+name: u-boot@rpi2
+kind: chunk
+configure-commands:
+- make ARCH=arm rpi_2_config
+build-commands:
+- make ARCH=arm CROSS_COMPILE=/usr/bin/
+- make ARCH=arm CROSS_COMPILE=/usr/bin/ tools
+install-commands:
+- mkdir -p "$DESTDIR$PREFIX/bin"
+- mkdir -p "$DESTDIR/boot"
+- cp u-boot.bin "$DESTDIR/boot/kernel.img"