Radix cross Linux

The main Radix cross Linux repository contains the build scripts of packages, which have the most complete and common functionality for desktop machines

452 Commits   2 Branches   1 Tag
Index: radix-setup/scripts/setup
===================================================================
--- radix-setup/scripts/setup	(revision 225)
+++ radix-setup/scripts/setup	(revision 226)
@@ -2523,6 +2523,13 @@
                         ${grub_modules}  2>/dev/null 1>/dev/null
 }
 
+install_orange_pi5_edk2() {
+  FLASHCP=`PATH=/sbin:/usr/sbin:$PATH which flashcp`
+  if [ -c /dev/mtd0 -a "`basename ${FLASHCP}`" = "flashcp" -a -f "/boot/edk2/spi-flash.image" ] ; then
+    ${FLASHCP} /boot/edk2/spi-flash.image /dev/mtd0
+  fi
+}
+
 install_starfive_vf2_grub()
 {
   UEFI=`get_uefi_devname`
@@ -2865,6 +2872,14 @@
 fi
 
 #
+# Install EDK2:
+# ------------
+#
+if [ "${hardware}" = "orange-pi5" ] ; then
+  install_orange_pi5_edk2
+fi
+
+#
 # post-install settings:
 #
 if [ -x ${ROOT_MPOINT}/usr/sbin/timeconfig ] ; then