Index: radix-1.9/boot/grub/orange-pi5/2.06/Makefile
===================================================================
--- radix-1.9/boot/grub/orange-pi5/2.06/Makefile (nonexistent)
+++ radix-1.9/boot/grub/orange-pi5/2.06/Makefile (revision 221)
@@ -0,0 +1,412 @@
+
+COMPONENT_TARGETS = $(HARDWARE_ORANGE_PI5)
+
+
+NEED_ABS_PATH = true
+COMPONENT_IS_3PP = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES = sources/GNU/grub
+
+REQUIRES = app/xz/5.2.7
+REQUIRES += libs/zlib/1.2.13
+REQUIRES += libs/zstd/1.5.2
+REQUIRES += dev/bison/3.7.4
+REQUIRES += dev/flex/2.6.4
+
+REQUIRES += share/fonts-collection
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version = 2.06
+tar_xz_archive = $(SRC_PACKAGE_PATH)/GNU/grub/grub-$(version).tar.xz
+SRC_ARCHIVE = $(tar_xz_archive)
+SRC_DIR = $(TARGET_BUILD_DIR)/grub-$(version)
+src_dir_name = grub-$(version)
+src_done = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dev_dir = $(TARGET_BUILD_DIR)/build-dev
+build_dev_target = $(TARGET_BUILD_DIR)/.build_dev_done
+install_dev_target = $(TARGET_BUILD_DIR)/.install_dev_done
+
+build_dir = $(TARGET_BUILD_DIR)/build
+build_target = $(TARGET_BUILD_DIR)/.build_done
+install_target = $(TARGET_BUILD_DIR)/.install_done
+
+boot_efi32fs = $(TARGET_BUILD_DIR)/$(HARDWARE).efi32fs
+install_efi32fs = $(TARGET_BUILD_DIR)/.install_efi32fs_done
+
+
+####### Targets
+
+PKG_GROUP = boot
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+GRUB_PKG_NAME = grub
+GRUB_PKG_VERSION = 2.06
+GRUB_PKG_ARCH = $(PKGARCH)
+GRUB_PKG_DISTRO_NAME = $(DISTRO_NAME)
+GRUB_PKG_DISTRO_VERSION = $(DISTRO_VERSION)
+GRUB_PKG_GROUP = $(PKG_GROUP)
+### |---handy-ruler-------------------------------|
+GRUB_PKG_SHORT_DESCRIPTION = the GRand Unified Bootloader
+GRUB_PKG_URL = $(BUG_URL)
+GRUB_PKG_LICENSE = GPLv3
+GRUB_PKG_DESCRIPTION_FILE = $(TARGET_BUILD_DIR)/$(GRUB_PKG_NAME)-pkg-description
+GRUB_PKG_DESCRIPTION_GRUB_IN = $(GRUB_PKG_NAME)-pkg-description.in
+GRUB_PKG_INSTALL_SCRIPT = $(GRUB_PKG_NAME)-pkg-install.sh
+
+GRUB_PKG = $(CURDIR)/$(TARGET_BUILD_DIR)/$(GRUB_PKG_NAME)-package
+
+pkg_basename = $(GRUB_PKG_NAME)-$(GRUB_PKG_VERSION)-$(GRUB_PKG_ARCH)-$(GRUB_PKG_DISTRO_NAME)-$(GRUB_PKG_DISTRO_VERSION)
+
+pkg_archive = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_certificate = $(call cert-name,$(pkg_archive))
+pkg_signature = $(call sign-name,$(pkg_archive))
+pkg_description = $(call desc-name,$(pkg_archive))
+products = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS = $(build_target)
+BUILD_TARGETS += $(install_target)
+BUILD_TARGETS += $(install_efi32fs)
+
+PRODUCT_TARGETS = $(products)
+
+ROOTFS_TARGETS = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(GRUB_PKG)
+
+extra_configure_switches = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+extra_configure_switches += --sysconfdir=/etc
+
+extra_configure_switches += --enable-threads=posix
+extra_configure_switches += --disable-rpath
+extra_configure_switches += --enable-stack-protector=no
+extra_configure_switches += --enable-mm-debug=no
+extra_configure_switches += --enable-cache-stats=no
+extra_configure_switches += --enable-boot-time=no
+extra_configure_switches += --enable-grub-emu-sdl=no
+extra_configure_switches += --enable-grub-emu-pci=no
+extra_configure_switches += --enable-grub-themes=no
+extra_configure_switches += --enable-device-mapper=no
+extra_configure_switches += --enable-liblzma
+extra_configure_switches += --enable-libzfs=no
+extra_configure_switches += --disable-werror
+extra_configure_switches += --enable-grub-themes
+extra_configure_switches += --enable-grub-mkfont
+
+extra_configure_switches += --with-bootdir='/boot'
+extra_configure_switches += --with-grubdir='grub'
+
+#
+# GRUB for Development environment:
+#
+build_dev_switches += --enable-efiemu=no
+build_dev_switches += --with-platform=efi
+build_dev_switches += --target=$(TARGET)
+build_dev_switches += --program-prefix=$(TARGET)-
+build_dev_switches += --enable-grub-mkfont
+build_dev_switches += --enable-grub-mount
+
+BUILD_DEV_ENVIRONMENT = HOST_CC=gcc
+BUILD_DEV_ENVIRONMENT += BUILD_CC=gcc
+BUILD_DEV_ENVIRONMENT += BUILD_CFLAGS='-I/usr/include'
+BUILD_DEV_ENVIRONMENT += BUILD_CPPFLAGS='-I/usr/include'
+BUILD_DEV_ENVIRONMENT += BUILD_LDFLAGS='-L/usr/lib$(BUILD_MULTILIB_SUFFIX)'
+BUILD_DEV_ENVIRONMENT += TARGET_CC='$(CC)'
+BUILD_DEV_ENVIRONMENT += TARGET_NM='$(NM)'
+BUILD_DEV_ENVIRONMENT += TARGET_RANLIB='$(RANLIB)'
+BUILD_DEV_ENVIRONMENT += TARGET_STRIP='$(STRIP)'
+BUILD_DEV_ENVIRONMENT += TARGET_OBJCOPY='$(OBJCOPY)'
+
+grub_CFLAGS = -isystem $(TARGET_DEST_DIR)/usr/include $(OPTIMIZATION_FLAGS) $(ARCH_FLAGS) $(HW_FLAGS)
+BUILD_DEV_ENVIRONMENT += TARGET_CFLAGS='--sysroot=$(TARGET_DEST_DIR) $(grub_CFLAGS)'
+BUILD_DEV_ENVIRONMENT += TARGET_LDFLAGS='--sysroot=$(TARGET_DEST_DIR)'
+
+
+#
+# GRUB for TARGET machine:
+#
+target_switches += --enable-efiemu=no
+target_switches += --with-platform=efi
+target_switches += --target=$(TARGET)
+target_switches += --program-prefix=''
+
+extra_environment = HOST_CC=gcc
+extra_environment += BUILD_CC=gcc
+extra_environment += BUILD_CFLAGS='-I/usr/include'
+extra_environment += BUILD_CPPFLAGS='-I/usr/include'
+extra_environment += BUILD_LDFLAGS='-L/usr/lib$(BUILD_MULTILIB_SUFFIX)'
+extra_environment += BUILD_FREETYPE_CFLAGS='-I/usr/include -I/usr/include/freetype2'
+extra_environment += BUILD_FREETYPE_LIBS='-L/usr/lib$(BUILD_MULTILIB_SUFFIX) -lfreetype'
+extra_environment += TARGET_CC='$(CC)'
+extra_environment += TARGET_NM='$(NM)'
+extra_environment += TARGET_RANLIB='$(RANLIB)'
+extra_environment += TARGET_STRIP='$(STRIP)'
+extra_environment += TARGET_OBJCOPY='$(OBJCOPY)'
+extra_environment += TARGET_CFLAGS='--sysroot=$(TARGET_DEST_DIR) $(grub_CFLAGS)'
+extra_environment += TARGET_LDFLAGS='--sysroot=$(TARGET_DEST_DIR)'
+
+
+#
+# GRUB EFI image for TARGET machine:
+#
+efi_image = $(TARGET_BUILD_DIR)/bootaa64.efi
+efi_embedded_cfg = $(TARGET_BUILD_DIR)/grub-$(DISTRO_NAME).cfg
+root_uuid = eaf0eef1-f13a-726F-6F74-203aefe0f0f2
+linux_cmdline = console=ttyS2,1500000n8 console=tty1
+
+grub_modules = all_video archelp bfs bitmap bitmap_scale blocklist boot btrfs
+grub_modules += cat chain configfile cpio date datehook datetime disk diskfilter
+grub_modules += echo efi_gop efifwsetup efinet elf eval exfat ext2 extcmd f2fs fat
+grub_modules += fdt file font fshelp gettext gfxmenu gfxterm gfxterm_background
+grub_modules += gfxterm_menu gptsync gzio halt hashsum help hexdump iso9660 jpeg
+grub_modules += json keystatus linux loadenv loopback ls lsefi lzopio mdraid1x
+grub_modules += memdisk minicmd msdospart net newc normal part_gpt part_msdos
+grub_modules += png probe procfs read reboot regexp reiserfs search search_fs_file
+grub_modules += search_fs_uuid search_label serial squash4 tar terminal terminfo
+grub_modules += test tftp time tr trig true udf ufs1 ufs2 video video_colors
+grub_modules += video_fb videoinfo xzio zstd
+
+FONT_SIZE = 19
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+ $(UNPACK_SRC_ARCHIVE)
+ $(APPLY_PATCHES)
+ @touch $@
+
+$(build_dev_target): $(src_done)
+ @mkdir -p $(build_dev_dir)
+ @cd $(build_dev_dir) && \
+ PKG_CONFIG_PATH= $(BUILD_DEV_ENVIRONMENT) ../$(src_dir_name)/configure \
+ --prefix=/usr \
+ --build=$(BUILD) \
+ --host=$(BUILD) \
+ $(extra_configure_switches) \
+ $(build_dev_switches)
+ @cd $(build_dev_dir) && $(BUILD_DEV_ENVIRONMENT) $(MAKE)
+ @touch $@
+
+$(install_dev_target): $(build_dev_target)
+ @mkdir -p $(GRUB_PKG)
+ @cd $(build_dev_dir) && $(BUILD_DEV_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+ @rm -rf $(GRUB_PKG)/etc
+ @rm -rf $(GRUB_PKG)/usr/share
+ @rm -rf $(GRUB_PKG)/usr/lib
+ @touch $@
+
+$(build_target): $(install_dev_target)
+ @mkdir -p $(build_dir)
+ @cd $(build_dir) && \
+ $(BUILD_ENVIRONMENT) $(extra_environment) ../$(src_dir_name)/configure \
+ --prefix=/usr \
+ --build=$(BUILD) \
+ --host=$(TARGET) \
+ $(extra_configure_switches) \
+ $(target_switches)
+ @cd $(build_dir) && $(BUILD_ENVIRONMENT) $(extra_environment) $(MAKE)
+ @cd $(build_dir) && $(BUILD_ENVIRONMENT) $(extra_environment) $(MAKE) html
+ @touch $@
+
+$(install_target): $(build_target)
+ @mkdir -p $(GRUB_PKG)
+ @cd $(build_dir) && $(BUILD_ENVIRONMENT) $(extra_environment) $(MAKE) -j1 install $(env_sysroot)
+ # ======= Install MANs (GRUB sources cannot generate MANs during cross-compilation) =======
+ @cd $(build_dev_dir) && $(MAKE) -j1 install-man1 $(env_sysroot)
+ @cd $(build_dev_dir) && $(MAKE) -j1 install-man8 $(env_sysroot)
+ @( cd $(GRUB_PKG)/usr/share/man ; \
+ for sname in `find . -type f -name '$(TARGET)-*'` ; do \
+ dname=`echo $${sname} | sed 's,$(TARGET)-,,'` ; \
+ mv $${sname} $${dname} ; \
+ done ; \
+ echo "# ======= remove MANs of not provided utils =======" ; \
+ rm -f man1/grub-mount.1 ; \
+ )
+ # ======= Install default options file =======
+ @mkdir -p $(GRUB_PKG)/etc/default
+ @cat $(CURDIR)/conf/etc.default > $(GRUB_PKG)/etc/default/grub.new
+ # ======= Create a grub.cfg =======
+ @mkdir -p $(GRUB_PKG)/boot/grub
+ @echo "" >> $(GRUB_PKG)/boot/grub/grub.cfg
+ @echo "set menu_color_normal=black/light-gray" >> $(GRUB_PKG)/boot/grub/grub.cfg
+ @echo "set menu_color_highlight=white/light-gray" >> $(GRUB_PKG)/boot/grub/grub.cfg
+ @echo "set background_color=black" >> $(GRUB_PKG)/boot/grub/grub.cfg
+ @echo "" >> $(GRUB_PKG)/boot/grub/grub.cfg
+ @echo "set timeout=5" >> $(GRUB_PKG)/boot/grub/grub.cfg
+ @echo "" >> $(GRUB_PKG)/boot/grub/grub.cfg
+ @echo "font '/boot/grub/fonts/dejavusansmono.pf2'" >> $(GRUB_PKG)/boot/grub/grub.cfg
+ @echo "loadfont dejavusansmono" >> $(GRUB_PKG)/boot/grub/grub.cfg
+ @echo "" >> $(GRUB_PKG)/boot/grub/grub.cfg
+ @echo "menuentry 'Radix cross Linux' {" >> $(GRUB_PKG)/boot/grub/grub.cfg
+ @echo " set root_uuid=$(root_uuid)" >> $(GRUB_PKG)/boot/grub/grub.cfg
+ @echo "" >> $(GRUB_PKG)/boot/grub/grub.cfg
+ @echo " insmod gzio" >> $(GRUB_PKG)/boot/grub/grub.cfg
+ @echo " insmod xzio" >> $(GRUB_PKG)/boot/grub/grub.cfg
+ @echo " insmod part_gpt" >> $(GRUB_PKG)/boot/grub/grub.cfg
+ @echo " insmod ext2" >> $(GRUB_PKG)/boot/grub/grub.cfg
+ @echo "" >> $(GRUB_PKG)/boot/grub/grub.cfg
+ @echo " search --set=root --fs-uuid \$$root_uuid" >> $(GRUB_PKG)/boot/grub/grub.cfg
+ @echo " linux /boot/Image root=PARTUUID=\$$root_uuid ro rootwait $(linux_cmdline)" >> $(GRUB_PKG)/boot/grub/grub.cfg
+ @echo "}" >> $(GRUB_PKG)/boot/grub/grub.cfg
+ # ======= Preserve the contents of /etc/grub.d/40_custom =======
+ @mv $(GRUB_PKG)/etc/grub.d/40_custom $(GRUB_PKG)/etc/grub.d/40_custom.new
+ # ======= Put bash-completion file in system directory =======
+ @mkdir -p $(GRUB_PKG)/usr/share/bash-completion/completions/
+ @mv $(GRUB_PKG)/etc/bash_completion.d/grub \
+ $(GRUB_PKG)/usr/share/bash-completion/completions/grub
+ @rm -rf $(GRUB_PKG)/etc/bash_completion.d
+ # ======= Add fonts, if found on the system =======
+ @if [ -r $(TARGET_DEST_DIR)/usr/share/fonts/TTF/unifont.ttf ] ; then \
+ $(GRUB_PKG)/usr/bin/$(TARGET)-grub-mkfont \
+ -o $(GRUB_PKG)/usr/share/grub/unifont.pf2 -abv \
+ -s $(FONT_SIZE) /usr/share/fonts/TTF/unifont.ttf \
+ 2>/dev/null 1>/dev/null ; \
+ fi
+ @if [ -r $(TARGET_DEST_DIR)/usr/share/fonts/TTF/DejaVuSansMono.ttf ] ; then \
+ $(GRUB_PKG)/usr/bin/$(TARGET)-grub-mkfont \
+ -o $(GRUB_PKG)/usr/share/grub/dejavusansmono.pf2 -abv \
+ -s $(FONT_SIZE) /usr/share/fonts/TTF/DejaVuSansMono.ttf \
+ 2>/dev/null 1>/dev/null ; \
+ fi
+ # ======= remove devenv paths from modinfo.sh script =======
+ @( cd $(GRUB_PKG)/usr/lib$(LIBSUFFIX)/grub/arm64-efi ; \
+ sed -i 's,$(TARGET_DEST_DIR),,g' modinfo.sh ; \
+ sed -i 's,$(TOOLCHAIN_PATH),,g' modinfo.sh ; \
+ sed -i 's,$(CROSS_PREFIX),,g' modinfo.sh ; \
+ sed -i 's,$(TARGET)-,,g' modinfo.sh ; \
+ sed -i 's,--sysroot= ,,g' modinfo.sh ; \
+ sed -i 's,-isystem /lib,-isystem /usr/lib,g' modinfo.sh ; \
+ )
+ # ======= Install GRUB =======
+ @$(GRUB_PKG)/usr/sbin/$(TARGET)-grub-install \
+ --skip-fs-probe \
+ --fonts=dejavusansmono \
+ --boot-directory=$(GRUB_PKG)/boot \
+ --directory=$(GRUB_PKG)/usr/lib$(LIBSUFFIX)/grub/arm64-efi \
+ --target=arm64-efi --no-efi --no-bootsector --no-nvram
+ # ======= Build EFI image =======
+ @echo "" > $(efi_embedded_cfg)
+ @echo "set color_normal=black/black" >> $(efi_embedded_cfg)
+ @echo "" >> $(efi_embedded_cfg)
+ @echo "set pager=1" >> $(efi_embedded_cfg)
+ @echo "search.fs_uuid $(root_uuid) root" >> $(efi_embedded_cfg)
+ @echo "set prefix=(\$$root)/boot/grub" >> $(efi_embedded_cfg)
+ @echo "" >> $(efi_embedded_cfg)
+ @echo "set color_normal=light-gray/black" >> $(efi_embedded_cfg)
+ @echo "clear" >> $(efi_embedded_cfg)
+ @cp -a $(efi_embedded_cfg) $(GRUB_PKG)/boot/grub/arm64-efi/load.cfg
+ @$(GRUB_PKG)/usr/bin/$(TARGET)-grub-mkimage \
+ --format=arm64-efi \
+ --directory=$(GRUB_PKG)/usr/lib$(LIBSUFFIX)/grub/arm64-efi \
+ --compression=xz \
+ --prefix=/efi/boot \
+ --config=$(efi_embedded_cfg) \
+ --output=$(efi_image) \
+ $(grub_modules)
+ # ======= Install Documentation =======
+ @rm -f $(GRUB_PKG)/usr/share/info/dir
+ @gzip -9 $(GRUB_PKG)/usr/share/info/*
+ @if [ -d $(GRUB_PKG)/usr/share/man ]; then \
+ ( cd $(GRUB_PKG)/usr/share/man ; \
+ for manpagedir in `find . -type d -name "man*"` ; do \
+ ( cd $$manpagedir ; \
+ for eachpage in `find . -type l -maxdepth 1` ; do \
+ ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
+ rm $$eachpage ; \
+ done ; \
+ gzip -9 *.? ; \
+ ) \
+ done \
+ ) \
+ fi
+ @mkdir -p $(GRUB_PKG)/usr/doc/$(src_dir_name)
+ @cp -a $(SRC_DIR)/AUTHORS $(SRC_DIR)/COPYING \
+ $(GRUB_PKG)/usr/doc/$(src_dir_name)
+ @mkdir -p $(GRUB_PKG)/usr/share/doc/$(src_dir_name)/html/grub{,-dev}
+ @( cd $(SRC_DIR) ; \
+ cp -a AUTHORS COPYING INSTALL NEWS README THANKS TODO \
+ $(GRUB_PKG)/usr/share/doc/$(src_dir_name) \
+ )
+ @cp -a $(build_dir)/docs/grub-dev.html/*.html \
+ $(GRUB_PKG)/usr/share/doc/$(src_dir_name)/html/grub-dev
+ @cp -a $(build_dir)/docs/grub.html/*.html \
+ $(GRUB_PKG)/usr/share/doc/$(src_dir_name)/html/grub
+ @( cd $(SRC_DIR) ; \
+ if [ -r ChangeLog ]; then \
+ DOCSDIR=`echo $(GRUB_PKG)/usr/share/doc/$(src_dir_name)` ; \
+ cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+ touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+ fi \
+ )
+ # ======= Install the same to $(TARGET_DEST_DIR) =======
+ $(call install-into-devenv, $(GRUB_PKG))
+ # ======= remove devenv utils from target package =======
+ @( cd $(GRUB_PKG)/usr ; \
+ find . -type f -name '$(TARGET)-*' -exec rm -f {} \+ ; \
+ )
+ # ======= Strip binaries =======
+ @( cd $(GRUB_PKG) ; \
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+ )
+ @touch $@
+
+$(boot_efi32fs): $(install_target)
+ # ======= Create FAT32 boot partition image =======
+ @$(DD) if=/dev/zero of=$@ bs=1M count=256
+ @$(MKDOSFS) -F 32 -n UEFI $@
+ @$(MMD) -i $@ ::/efi
+ @$(MMD) -i $@ ::/efi/boot
+ @$(MCOPY) -i $@ $(efi_image) ::/efi/boot/
+ @touch $@
+
+$(install_efi32fs): $(boot_efi32fs)
+ @$(BUILDSYSTEM)/install_targets \
+ --destination=$(PRODUCTS_DEST_DIR) \
+ --toolchain=$(TOOLCHAIN) \
+ --hardware=$(HARDWARE) \
+ --flavour=$(FLAVOUR) \
+ $^
+ @touch $@
+
+$(GRUB_PKG_DESCRIPTION_FILE): $(GRUB_PKG_DESCRIPTION_GRUB_IN)
+ @cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature) : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_efi32fs) $(GRUB_PKG_DESCRIPTION_FILE) $(GRUB_PKG_INSTALL_SCRIPT)
+ @cp $(GRUB_PKG_DESCRIPTION_FILE) $(GRUB_PKG)/.DESCRIPTION
+ @cp $(GRUB_PKG_INSTALL_SCRIPT) $(GRUB_PKG)/.INSTALL
+ @$(BUILD_PKG_REQUIRES) $(GRUB_PKG)/.REQUIRES
+ @echo "pkgname=$(GRUB_PKG_NAME)" > $(GRUB_PKG)/.PKGINFO ; \
+ echo "pkgver=$(GRUB_PKG_VERSION)" >> $(GRUB_PKG)/.PKGINFO ; \
+ echo "arch=$(GRUB_PKG_ARCH)" >> $(GRUB_PKG)/.PKGINFO ; \
+ echo "distroname=$(GRUB_PKG_DISTRO_NAME)" >> $(GRUB_PKG)/.PKGINFO ; \
+ echo "distrover=$(GRUB_PKG_DISTRO_VERSION)" >> $(GRUB_PKG)/.PKGINFO ; \
+ echo "group=$(GRUB_PKG_GROUP)" >> $(GRUB_PKG)/.PKGINFO ; \
+ echo "short_description=\"$(GRUB_PKG_SHORT_DESCRIPTION)\"" >> $(GRUB_PKG)/.PKGINFO ; \
+ echo "url=$(GRUB_PKG_URL)" >> $(GRUB_PKG)/.PKGINFO ; \
+ echo "license=$(GRUB_PKG_LICENSE)" >> $(GRUB_PKG)/.PKGINFO
+ @$(PSEUDO) sh -c "cd $(GRUB_PKG) && \
+ chown -R root:root . && \
+ $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: radix-1.9/boot/grub/orange-pi5/2.06/PATCHES
===================================================================
--- radix-1.9/boot/grub/orange-pi5/2.06/PATCHES (nonexistent)
+++ radix-1.9/boot/grub/orange-pi5/2.06/PATCHES (revision 221)
@@ -0,0 +1,10 @@
+
+../../../../sources/GNU/grub/patches/grub-2.06-align-struct.patch -p0
+../../../../sources/GNU/grub/patches/grub-2.06-dejavu-sans.patch -p0
+../../../../sources/GNU/grub/patches/grub-2.06-fonts-ttf.patch -p0
+../../../../sources/GNU/grub/patches/grub-2.06-gensyminfo.patch -p0
+../../../../sources/GNU/grub/patches/grub-2.06-initrd-names.patch -p0
+../../../../sources/GNU/grub/patches/grub-2.06-modinfo.patch -p0
+../../../../sources/GNU/grub/patches/grub-2.06-no-efi.patch -p0
+
+../../../../sources/GNU/grub/patches/grub-2.06-normal-welcome.patch -p0
Index: radix-1.9/boot/grub/orange-pi5/2.06/conf/etc.default
===================================================================
--- radix-1.9/boot/grub/orange-pi5/2.06/conf/etc.default (nonexistent)
+++ radix-1.9/boot/grub/orange-pi5/2.06/conf/etc.default (revision 221)
@@ -0,0 +1,28 @@
+# If you change this file, run grub-mkconfig -o /boot/grub/grub.cfg
+# afterwards to update /boot/grub/grub.cfg.
+
+GRUB_DEFAULT=0
+#GRUB_HIDDEN_TIMEOUT=0
+GRUB_HIDDEN_TIMEOUT_QUIET=false
+GRUB_TIMEOUT=10
+GRUB_DISTRIBUTOR=$( sed 's/Radix /Radix-/' /etc/radix-version )
+GRUB_CMDLINE_LINUX_DEFAULT=""
+GRUB_CMDLINE_LINUX=""
+
+# Uncomment to disable graphical terminal (grub-pc only)
+#GRUB_TERMINAL=console
+
+# The resolution used on graphical terminal
+# note that you can use only modes which your graphic card supports via VBE
+# you can see them in real GRUB with the command `vbeinfo'
+#GRUB_GFXMODE=640x480
+#GRUB_GFXMODE=1024x768x32
+
+# Font used on the graphical terminal:
+#GRUB_FONT=/usr/share/grub/dejavusansmono.pf2
+
+# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
+#GRUB_DISABLE_LINUX_UUID=true
+
+# Uncomment to disable generation of recovery mode menu entries
+#GRUB_DISABLE_RECOVERY="true"
Index: radix-1.9/boot/grub/orange-pi5/2.06/grub-pkg-description.in
===================================================================
--- radix-1.9/boot/grub/orange-pi5/2.06/grub-pkg-description.in (nonexistent)
+++ radix-1.9/boot/grub/orange-pi5/2.06/grub-pkg-description.in (revision 221)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+grub: grub @VERSION@ (the GRand Unified Bootloader)
+grub:
+grub: GNU GRUB is a multiboot boot loader.
+grub:
+grub: Website: http://www.gnu.org/software/grub/
+grub:
+grub:
+grub:
+grub:
+grub:
+grub:
Index: radix-1.9/boot/grub/orange-pi5/2.06/grub-pkg-install.sh
===================================================================
--- radix-1.9/boot/grub/orange-pi5/2.06/grub-pkg-install.sh (nonexistent)
+++ radix-1.9/boot/grub/orange-pi5/2.06/grub-pkg-install.sh (revision 221)
@@ -0,0 +1,101 @@
+#!/bin/sh
+
+# Preserve new files
+install_file() {
+ NEW="$1"
+ OLD="`dirname $NEW`/`basename $NEW .new`"
+ # If there's no file by that name, mv it over:
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
+ rm $NEW
+ fi
+ # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+preserve_perms() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ if [ -e $OLD ]; then
+ cp -a $OLD ${NEW}.incoming
+ cat $NEW > ${NEW}.incoming
+ touch -r $NEW ${NEW}.incoming
+ mv ${NEW}.incoming $NEW
+ fi
+ install_file $NEW
+}
+
+
+# arg 1: the new package version
+pre_install() {
+ /bin/true
+}
+
+# arg 1: the new package version
+post_install() {
+ install_file etc/grub.d/40_custom.new
+ rm -f etc/grub.d/40_custom.new
+ install_file etc/default/grub.new
+
+ #
+ # NOTE:
+ # 'install-info' can work using relative paths and we can make use build machine
+ # utility during installation to the some partition and use target 'install-info'
+ # during installation directly on the running target machine.
+ #
+ if [ -x /usr/bin/install-info ] ; then
+ install-info --info-dir=usr/share/info usr/share/info/grub.info.gz 2>/dev/null
+ install-info --info-dir=usr/share/info usr/share/info/grub-dev.info.gz 2>/dev/null
+ elif ! grep "(grub)" usr/share/info/dir 1> /dev/null 2> /dev/null ; then
+ cat << EOF >> usr/share/info/dir
+
+Kernel
+* grub-dev: (grub-dev). The GRand Unified Bootloader Dev
+* grub-install: (grub)Invoking grub-install.
+ Install GRUB on your drive
+* grub-mkconfig: (grub)Invoking grub-mkconfig.
+ Generate GRUB configuration
+* grub-mkpasswd-pbkdf2: (grub)Invoking grub-mkpasswd-pbkdf2.
+* grub-mkrelpath: (grub)Invoking grub-mkrelpath.
+* grub-mkrescue: (grub)Invoking grub-mkrescue.
+ Make a GRUB rescue image
+* grub-mount: (grub)Invoking grub-mount.
+ Mount a file system using GRUB
+* grub-probe: (grub)Invoking grub-probe.
+ Probe device information
+* grub-script-check: (grub)Invoking grub-script-check.
+* GRUB: (grub). The GRand Unified Bootloader
+EOF
+ fi
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+pre_update() {
+ /bin/true
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+post_update() {
+ post_install
+}
+
+# arg 1: the old package version
+pre_remove() {
+ if [ -x /usr/bin/install-info ] ; then
+ install-info --delete --info-file=usr/share/info/grub-dev.info.gz --dir-file=usr/share/info/dir 2> /dev/null || /bin/true
+ install-info --delete --info-file=usr/share/info/grub.info.gz --dir-file=usr/share/info/dir 2> /dev/null || /bin/true
+ fi
+}
+
+# arg 1: the old package version
+post_remove() {
+ /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*
Property changes on: radix-1.9/boot/grub/orange-pi5/2.06/grub-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: radix-1.9/boot/grub/orange-pi5/2.06
===================================================================
--- radix-1.9/boot/grub/orange-pi5/2.06 (nonexistent)
+++ radix-1.9/boot/grub/orange-pi5/2.06 (revision 221)
Property changes on: radix-1.9/boot/grub/orange-pi5/2.06
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,74 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.rk358x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~