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-14 16:25:43 +0000
commit52663b59193ec0ec60fae263aed89eaa5a101c45 (patch)
treec521f7fc7ba4453b73628c67e6f86a0417091a21
parent7ccbeefa09ad1486dfb6fc058a20a206e48a1433 (diff)
downloaddefinitions-52663b59193ec0ec60fae263aed89eaa5a101c45.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"