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

383 Commits   1 Branch   1 Tag
Index: baikal-m1/2.06/Makefile
===================================================================
--- baikal-m1/2.06/Makefile	(nonexistent)
+++ baikal-m1/2.06/Makefile	(revision 5)
@@ -0,0 +1,412 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_BAIKAL_M1)
+
+
+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=tty1 earlyprintk=uart8250-32bit,0x20230000,115200
+
+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: baikal-m1/2.06/PATCHES
===================================================================
--- baikal-m1/2.06/PATCHES	(nonexistent)
+++ baikal-m1/2.06/PATCHES	(revision 5)
@@ -0,0 +1,8 @@
+
+../../../../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
Index: baikal-m1/2.06/conf/etc.default
===================================================================
--- baikal-m1/2.06/conf/etc.default	(nonexistent)
+++ baikal-m1/2.06/conf/etc.default	(revision 5)
@@ -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: baikal-m1/2.06/conf
===================================================================
--- baikal-m1/2.06/conf	(nonexistent)
+++ baikal-m1/2.06/conf	(revision 5)

Property changes on: baikal-m1/2.06/conf
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# 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
+.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
+*~
Index: baikal-m1/2.06/grub-pkg-description.in
===================================================================
--- baikal-m1/2.06/grub-pkg-description.in	(nonexistent)
+++ baikal-m1/2.06/grub-pkg-description.in	(revision 5)
@@ -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: baikal-m1/2.06/grub-pkg-install.sh
===================================================================
--- baikal-m1/2.06/grub-pkg-install.sh	(nonexistent)
+++ baikal-m1/2.06/grub-pkg-install.sh	(revision 5)
@@ -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: baikal-m1/2.06/grub-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: baikal-m1/2.06
===================================================================
--- baikal-m1/2.06	(nonexistent)
+++ baikal-m1/2.06	(revision 5)

Property changes on: baikal-m1/2.06
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# 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
+.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
+*~
Index: baikal-m1
===================================================================
--- baikal-m1	(nonexistent)
+++ baikal-m1	(revision 5)

Property changes on: baikal-m1
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# 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
+.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
+*~
Index: ebox-3350dx2/2.06/Makefile
===================================================================
--- ebox-3350dx2/2.06/Makefile	(nonexistent)
+++ ebox-3350dx2/2.06/Makefile	(revision 5)
@@ -0,0 +1,424 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_EBOX_3350DX2)
+
+
+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
+
+grub_config        = $(TARGET_BUILD_DIR)/$(HARDWARE).grub-config
+
+grub_records       = $(TARGET_BUILD_DIR)/$(HARDWARE).grub-records
+install_records    = $(TARGET_BUILD_DIR)/.install_records_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_records)
+
+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 += --localstatedir=/var
+
+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-efiemu=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 += --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)'
+
+#
+# Redefine optimization flags:
+#
+OPTIMIZATION_FLAGS := -Os
+
+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 += --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 MBR image for TARGET machine:
+#
+create_tmp_image   = $(CURDIR)/scripts/create-tmp-image
+grub_disk_image    = $(TARGET_BUILD_DIR)/grub-disk
+grub_core_image    = $(TARGET_BUILD_DIR)/grub-core
+grub_embedded_cfg  = $(TARGET_BUILD_DIR)/$(HARDWARE).grub-embedded.cfg
+root_uuid          = eaf0eef1-f13a-726F-6F74-203aefe0f0f2
+linux_cmdline      = console=tty0
+
+grub_modules       = part_gpt part_msdos fat f2fs ext2 hfs hfsplus iso9660 udf ufs1 ufs2 chain linux
+grub_modules      += boot biosdisk configfile normal regexp minicmd reboot halt search search_fs_file
+grub_modules      += search_fs_uuid search_label gfxterm gfxmenu all_video gzio echo true probe loadenv
+grub_modules      += bitmap_scale font cat help ls png jpeg tga test at_keyboard usb_keyboard zstd
+
+FONT_SIZE = 19
+
+part-uuid = $(shell $(DD) if=$(1) bs=1 count=4 skip=440 2>/dev/null | od -t x4 -An | sed 's,^[ ]*,,')-01
+
+
+####### 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
+	# ======= 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/i386-pc ; \
+	   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 ; \
+	 )
+	# ======= Create temporary disk image for GRUB Records =======
+	@$(create_tmp_image) $(grub_disk_image)
+	# ======= 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/i386-pc \
+	   --target=i386-pc \
+	   --modules='$(grub_modules)' \
+	   --disk-module=biosdisk \
+	   $(grub_disk_image)
+	# ======= Create embedded config =======
+	@echo ""                                   > $(grub_embedded_cfg)
+	@echo "set color_normal=black/black"      >> $(grub_embedded_cfg)
+	@echo ""                                  >> $(grub_embedded_cfg)
+	@echo "set pager=1"                       >> $(grub_embedded_cfg)
+	@echo "search.fs_uuid $(root_uuid) root"  >> $(grub_embedded_cfg)
+	@echo "set prefix=(\$$root)/boot/grub"    >> $(grub_embedded_cfg)
+	@echo ""                                  >> $(grub_embedded_cfg)
+	@echo "set color_normal=light-gray/black" >> $(grub_embedded_cfg)
+	@echo "clear"                             >> $(grub_embedded_cfg)
+	@cp -a $(grub_embedded_cfg) $(GRUB_PKG)/boot/grub/i386-pc/load.cfg
+	# ======= Build MBR gap image =======
+	@$(GRUB_PKG)/usr/bin/$(TARGET)-grub-mkimage \
+	   --format=i386-pc \
+	   --directory=$(GRUB_PKG)/usr/lib$(LIBSUFFIX)/grub/i386-pc \
+	   --prefix=/boot/grub \
+	   --config=$(grub_embedded_cfg) \
+	   --output=$(grub_core_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 $@
+
+$(grub_config): $(install_target)
+	# ======= Create a grub.cfg =======
+	@mkdir -p $(GRUB_PKG)/boot/grub
+	@echo ""                                                      > $@
+	@echo "set menu_color_normal=black/light-gray"               >> $@
+	@echo "set menu_color_highlight=white/light-gray"            >> $@
+	@echo "set background_color=black"                           >> $@
+	@echo ""                                                     >> $@
+	@echo "set timeout=5"                                        >> $@
+	@echo ""                                                     >> $@
+	@echo "loadfont dejavusansmono"                              >> $@
+	@echo ""                                                     >> $@
+	@echo "menuentry 'Radix cross Linux' {"                      >> $@
+	@echo "  set root_uuid=$(root_uuid)"                         >> $@
+	@echo "  set part_uuid=$(call part-uuid,$(grub_disk_image))" >> $@
+	@echo ""                                                     >> $@
+	@echo "  insmod gzio"                                        >> $@
+	@echo "  insmod xzio"                                        >> $@
+	@echo "  insmod part_msdos"                                  >> $@
+	@echo "  insmod part_gpt"                                    >> $@
+	@echo "  insmod ext2"                                        >> $@
+	@echo ""                                                     >> $@
+	@echo "  search --set=root --fs-uuid \$$root_uuid"           >> $@
+	@echo "  linux (\$$root)/boot/vmlinuz root=PARTUUID=\$$part_uuid ro rootwait $(linux_cmdline)" >> $@
+	@echo "}"                                                    >> $@
+	@cp $@ $(GRUB_PKG)/boot/grub/grub.cfg
+	@touch $@
+
+$(grub_records): $(grub_config)
+	@$(DD) if=/dev/zero of=$@ bs=512 count=2048 conv=notrunc
+	# ======= Setup MBR & MBR gap into unallocated space of disk image =======
+	@$(DD) if=$(grub_disk_image) of=$@ obs=512 count=1 conv=notrunc
+	@$(DD) if=$(grub_core_image) of=$@ obs=512  seek=1 conv=notrunc
+	@rm -f $(grub_disk_image) $(grub_core_image)
+	@touch $@
+
+$(install_records): $(grub_records)
+	@$(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: ebox-3350dx2/2.06/PATCHES
===================================================================
--- ebox-3350dx2/2.06/PATCHES	(nonexistent)
+++ ebox-3350dx2/2.06/PATCHES	(revision 5)
@@ -0,0 +1,8 @@
+
+../../../../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
Index: ebox-3350dx2/2.06/conf/etc.default
===================================================================
--- ebox-3350dx2/2.06/conf/etc.default	(nonexistent)
+++ ebox-3350dx2/2.06/conf/etc.default	(revision 5)
@@ -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: ebox-3350dx2/2.06/conf
===================================================================
--- ebox-3350dx2/2.06/conf	(nonexistent)
+++ ebox-3350dx2/2.06/conf	(revision 5)

Property changes on: ebox-3350dx2/2.06/conf
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# 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
+.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
+*~
Index: ebox-3350dx2/2.06/grub-pkg-description.in
===================================================================
--- ebox-3350dx2/2.06/grub-pkg-description.in	(nonexistent)
+++ ebox-3350dx2/2.06/grub-pkg-description.in	(revision 5)
@@ -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: ebox-3350dx2/2.06/grub-pkg-install.sh
===================================================================
--- ebox-3350dx2/2.06/grub-pkg-install.sh	(nonexistent)
+++ ebox-3350dx2/2.06/grub-pkg-install.sh	(revision 5)
@@ -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: ebox-3350dx2/2.06/grub-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: ebox-3350dx2/2.06/scripts/create-tmp-image
===================================================================
--- ebox-3350dx2/2.06/scripts/create-tmp-image	(nonexistent)
+++ ebox-3350dx2/2.06/scripts/create-tmp-image	(revision 5)
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+image=$1
+
+if [ "x${image}" = "x" ] ; then
+  exit 1
+fi
+
+#
+# +8M
+#
+dd if=/dev/zero of=${image} bs=512 count=18432 1>/dev/null 2>/dev/null
+/sbin/fdisk --wipe=always --wipe-partition=always ${image} 1>/dev/null 2>/dev/null <<EOF
+n
+p
+1
+2048
+18431
+t
+83
+w
+EOF

Property changes on: ebox-3350dx2/2.06/scripts/create-tmp-image
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: ebox-3350dx2/2.06/scripts
===================================================================
--- ebox-3350dx2/2.06/scripts	(nonexistent)
+++ ebox-3350dx2/2.06/scripts	(revision 5)

Property changes on: ebox-3350dx2/2.06/scripts
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# 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
+.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
+*~
Index: ebox-3350dx2/2.06
===================================================================
--- ebox-3350dx2/2.06	(nonexistent)
+++ ebox-3350dx2/2.06	(revision 5)

Property changes on: ebox-3350dx2/2.06
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# 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
+.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
+*~
Index: ebox-3350dx2
===================================================================
--- ebox-3350dx2	(nonexistent)
+++ ebox-3350dx2	(revision 5)

Property changes on: ebox-3350dx2
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# 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
+.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
+*~
Index: intel-pc32/2.06/Makefile
===================================================================
--- intel-pc32/2.06/Makefile	(nonexistent)
+++ intel-pc32/2.06/Makefile	(revision 5)
@@ -0,0 +1,424 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_INTEL_PC32)
+
+
+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
+
+grub_config        = $(TARGET_BUILD_DIR)/$(HARDWARE).grub-config
+
+grub_records       = $(TARGET_BUILD_DIR)/$(HARDWARE).grub-records
+install_records    = $(TARGET_BUILD_DIR)/.install_records_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_records)
+
+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 += --localstatedir=/var
+
+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-efiemu=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 += --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)'
+
+#
+# Redefine optimization flags:
+#
+OPTIMIZATION_FLAGS := -Os
+
+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 += --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 MBR image for TARGET machine:
+#
+create_tmp_image   = $(CURDIR)/scripts/create-tmp-image
+grub_disk_image    = $(TARGET_BUILD_DIR)/grub-disk
+grub_core_image    = $(TARGET_BUILD_DIR)/grub-core
+grub_embedded_cfg  = $(TARGET_BUILD_DIR)/$(HARDWARE).grub-embedded.cfg
+root_uuid          = eaf0eef1-f13a-726F-6F74-203aefe0f0f2
+linux_cmdline      = console=tty0
+
+grub_modules       = part_gpt part_msdos fat f2fs ext2 hfs hfsplus iso9660 udf ufs1 ufs2 chain linux
+grub_modules      += boot biosdisk configfile normal regexp minicmd reboot halt search search_fs_file
+grub_modules      += search_fs_uuid search_label gfxterm gfxmenu all_video gzio echo true probe loadenv
+grub_modules      += bitmap_scale font cat help ls png jpeg tga test at_keyboard usb_keyboard zstd
+
+FONT_SIZE = 19
+
+part-uuid = $(shell $(DD) if=$(1) bs=1 count=4 skip=440 2>/dev/null | od -t x4 -An | sed 's,^[ ]*,,')-01
+
+
+####### 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
+	# ======= 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/i386-pc ; \
+	   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 ; \
+	 )
+	# ======= Create temporary disk image for GRUB Records =======
+	@$(create_tmp_image) $(grub_disk_image)
+	# ======= 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/i386-pc \
+	   --target=i386-pc \
+	   --modules='$(grub_modules)' \
+	   --disk-module=biosdisk \
+	   $(grub_disk_image)
+	# ======= Create embedded config =======
+	@echo ""                                   > $(grub_embedded_cfg)
+	@echo "set color_normal=black/black"      >> $(grub_embedded_cfg)
+	@echo ""                                  >> $(grub_embedded_cfg)
+	@echo "set pager=1"                       >> $(grub_embedded_cfg)
+	@echo "search.fs_uuid $(root_uuid) root"  >> $(grub_embedded_cfg)
+	@echo "set prefix=(\$$root)/boot/grub"    >> $(grub_embedded_cfg)
+	@echo ""                                  >> $(grub_embedded_cfg)
+	@echo "set color_normal=light-gray/black" >> $(grub_embedded_cfg)
+	@echo "clear"                             >> $(grub_embedded_cfg)
+	@cp -a $(grub_embedded_cfg) $(GRUB_PKG)/boot/grub/i386-pc/load.cfg
+	# ======= Build MBR gap image =======
+	@$(GRUB_PKG)/usr/bin/$(TARGET)-grub-mkimage \
+	   --format=i386-pc \
+	   --directory=$(GRUB_PKG)/usr/lib$(LIBSUFFIX)/grub/i386-pc \
+	   --prefix=/boot/grub \
+	   --config=$(grub_embedded_cfg) \
+	   --output=$(grub_core_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 $@
+
+$(grub_config): $(install_target)
+	# ======= Create a grub.cfg =======
+	@mkdir -p $(GRUB_PKG)/boot/grub
+	@echo ""                                                      > $@
+	@echo "set menu_color_normal=black/light-gray"               >> $@
+	@echo "set menu_color_highlight=white/light-gray"            >> $@
+	@echo "set background_color=black"                           >> $@
+	@echo ""                                                     >> $@
+	@echo "set timeout=5"                                        >> $@
+	@echo ""                                                     >> $@
+	@echo "loadfont dejavusansmono"                              >> $@
+	@echo ""                                                     >> $@
+	@echo "menuentry 'Radix cross Linux' {"                      >> $@
+	@echo "  set root_uuid=$(root_uuid)"                         >> $@
+	@echo "  set part_uuid=$(call part-uuid,$(grub_disk_image))" >> $@
+	@echo ""                                                     >> $@
+	@echo "  insmod gzio"                                        >> $@
+	@echo "  insmod xzio"                                        >> $@
+	@echo "  insmod part_msdos"                                  >> $@
+	@echo "  insmod part_gpt"                                    >> $@
+	@echo "  insmod ext2"                                        >> $@
+	@echo ""                                                     >> $@
+	@echo "  search --set=root --fs-uuid \$$root_uuid"           >> $@
+	@echo "  linux (\$$root)/boot/vmlinuz root=PARTUUID=\$$part_uuid ro rootwait $(linux_cmdline)" >> $@
+	@echo "}"                                                    >> $@
+	@cp $@ $(GRUB_PKG)/boot/grub/grub.cfg
+	@touch $@
+
+$(grub_records): $(grub_config)
+	@$(DD) if=/dev/zero of=$@ bs=512 count=2048 conv=notrunc
+	# ======= Setup MBR & MBR gap into unallocated space of disk image =======
+	@$(DD) if=$(grub_disk_image) of=$@ obs=512 count=1 conv=notrunc
+	@$(DD) if=$(grub_core_image) of=$@ obs=512  seek=1 conv=notrunc
+	@rm -f $(grub_disk_image) $(grub_core_image)
+	@touch $@
+
+$(install_records): $(grub_records)
+	@$(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: intel-pc32/2.06/PATCHES
===================================================================
--- intel-pc32/2.06/PATCHES	(nonexistent)
+++ intel-pc32/2.06/PATCHES	(revision 5)
@@ -0,0 +1,8 @@
+
+../../../../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
Index: intel-pc32/2.06/conf/etc.default
===================================================================
--- intel-pc32/2.06/conf/etc.default	(nonexistent)
+++ intel-pc32/2.06/conf/etc.default	(revision 5)
@@ -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: intel-pc32/2.06/conf
===================================================================
--- intel-pc32/2.06/conf	(nonexistent)
+++ intel-pc32/2.06/conf	(revision 5)

Property changes on: intel-pc32/2.06/conf
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# 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
+.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
+*~
Index: intel-pc32/2.06/grub-pkg-description.in
===================================================================
--- intel-pc32/2.06/grub-pkg-description.in	(nonexistent)
+++ intel-pc32/2.06/grub-pkg-description.in	(revision 5)
@@ -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: intel-pc32/2.06/grub-pkg-install.sh
===================================================================
--- intel-pc32/2.06/grub-pkg-install.sh	(nonexistent)
+++ intel-pc32/2.06/grub-pkg-install.sh	(revision 5)
@@ -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: intel-pc32/2.06/grub-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: intel-pc32/2.06/scripts/create-tmp-image
===================================================================
--- intel-pc32/2.06/scripts/create-tmp-image	(nonexistent)
+++ intel-pc32/2.06/scripts/create-tmp-image	(revision 5)
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+image=$1
+
+if [ "x${image}" = "x" ] ; then
+  exit 1
+fi
+
+#
+# +8M
+#
+dd if=/dev/zero of=${image} bs=512 count=18432 1>/dev/null 2>/dev/null
+/sbin/fdisk --wipe=always --wipe-partition=always ${image} 1>/dev/null 2>/dev/null <<EOF
+n
+p
+1
+2048
+18431
+t
+83
+w
+EOF

Property changes on: intel-pc32/2.06/scripts/create-tmp-image
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: intel-pc32/2.06/scripts
===================================================================
--- intel-pc32/2.06/scripts	(nonexistent)
+++ intel-pc32/2.06/scripts	(revision 5)

Property changes on: intel-pc32/2.06/scripts
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# 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
+.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
+*~
Index: intel-pc32/2.06
===================================================================
--- intel-pc32/2.06	(nonexistent)
+++ intel-pc32/2.06	(revision 5)

Property changes on: intel-pc32/2.06
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# 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
+.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
+*~
Index: intel-pc32
===================================================================
--- intel-pc32	(nonexistent)
+++ intel-pc32	(revision 5)

Property changes on: intel-pc32
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# 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
+.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
+*~
Index: intel-pc64/2.06/Makefile
===================================================================
--- intel-pc64/2.06/Makefile	(nonexistent)
+++ intel-pc64/2.06/Makefile	(revision 5)
@@ -0,0 +1,405 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_INTEL_PC64)
+
+
+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)/bootx64.efi
+efi_embedded_cfg   = $(TARGET_BUILD_DIR)/grub-$(DISTRO_NAME).cfg
+root_uuid          = eaf0eef1-f13a-726F-6F74-203aefe0f0f2
+linux_cmdline      =
+
+grub_modules       = part_gpt part_msdos fat f2fs ext2 hfs hfsplus iso9660 udf ufs1 ufs2 chain linux
+grub_modules      += boot appleldr configfile normal regexp minicmd reboot halt search search_fs_file
+grub_modules      += search_fs_uuid search_label gfxterm gfxmenu efi_gop efi_uga all_video loadbios
+grub_modules      += gzio echo true probe loadenv bitmap_scale font cat help ls png jpeg tga test
+grub_modules      += at_keyboard usb_keyboard 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 "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/vmlinuz 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/x86_64-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/x86_64-efi \
+	   --target=x86_64-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/x86_64-efi/load.cfg
+	@$(GRUB_PKG)/usr/bin/$(TARGET)-grub-mkimage \
+	   --format=x86_64-efi \
+	   --directory=$(GRUB_PKG)/usr/lib$(LIBSUFFIX)/grub/x86_64-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: intel-pc64/2.06/PATCHES
===================================================================
--- intel-pc64/2.06/PATCHES	(nonexistent)
+++ intel-pc64/2.06/PATCHES	(revision 5)
@@ -0,0 +1,8 @@
+
+../../../../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
Index: intel-pc64/2.06/conf/etc.default
===================================================================
--- intel-pc64/2.06/conf/etc.default	(nonexistent)
+++ intel-pc64/2.06/conf/etc.default	(revision 5)
@@ -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: intel-pc64/2.06/conf
===================================================================
--- intel-pc64/2.06/conf	(nonexistent)
+++ intel-pc64/2.06/conf	(revision 5)

Property changes on: intel-pc64/2.06/conf
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# 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
+.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
+*~
Index: intel-pc64/2.06/grub-pkg-description.in
===================================================================
--- intel-pc64/2.06/grub-pkg-description.in	(nonexistent)
+++ intel-pc64/2.06/grub-pkg-description.in	(revision 5)
@@ -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: intel-pc64/2.06/grub-pkg-install.sh
===================================================================
--- intel-pc64/2.06/grub-pkg-install.sh	(nonexistent)
+++ intel-pc64/2.06/grub-pkg-install.sh	(revision 5)
@@ -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: intel-pc64/2.06/grub-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: intel-pc64/2.06
===================================================================
--- intel-pc64/2.06	(nonexistent)
+++ intel-pc64/2.06	(revision 5)

Property changes on: intel-pc64/2.06
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# 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
+.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
+*~
Index: intel-pc64
===================================================================
--- intel-pc64	(nonexistent)
+++ intel-pc64	(revision 5)

Property changes on: intel-pc64
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# 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
+.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
+*~
Index: .
===================================================================
--- .	(nonexistent)
+++ .	(revision 5)

Property changes on: .
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# 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
+.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
+*~