The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / board / boundarydevices / nitrogen6x / post-build.sh
diff --git a/cirros-testvm/src-cirros/buildroot-2015.05/board/boundarydevices/nitrogen6x/post-build.sh b/cirros-testvm/src-cirros/buildroot-2015.05/board/boundarydevices/nitrogen6x/post-build.sh
new file mode 100755 (executable)
index 0000000..2b43aa3
--- /dev/null
@@ -0,0 +1,18 @@
+#!/bin/sh
+# post-build fixups
+# for further details, see
+#
+#  http://boundarydevices.com/u-boot-on-i-mx6/
+#
+
+BOARD_DIR="$(dirname $0)"
+
+# bd u-boot looks for bootscript here
+install -D -m 0644 $BOARD_DIR/6x_bootscript $TARGET_DIR/6x_bootscript
+
+# u-boot / update script for bd upgradeu command
+if [ -e $BINARIES_DIR/u-boot.imx ];
+then
+    install -D -m 0644 $BINARIES_DIR/u-boot.imx $TARGET_DIR/u-boot.imx
+    install -D -m 0644 $BOARD_DIR/6x_upgrade $TARGET_DIR/6x_upgrade
+fi