mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 05:36:32 +00:00
- add optional splashimage support
This commit is contained in:
parent
8d98a89f89
commit
ee161b3eb9
@ -4,3 +4,14 @@ config BR2_TARGET_GRUB
|
|||||||
depends on BR2_i386
|
depends on BR2_i386
|
||||||
help
|
help
|
||||||
The GRand Unified Bootloader for x86 systems.
|
The GRand Unified Bootloader for x86 systems.
|
||||||
|
|
||||||
|
config BR2_TARGET_GRUB_SPLASH
|
||||||
|
bool " Splashimage support"
|
||||||
|
default n
|
||||||
|
depends on BR2_TARGET_GRUB
|
||||||
|
help
|
||||||
|
Add support for splashimage.
|
||||||
|
|
||||||
|
A splashimage is a 14-color indexed .xpm picture which
|
||||||
|
is displayed as background for the grub menu.
|
||||||
|
|
||||||
|
1407
target/x86/grub/grub.100-autoreconf.patch
Normal file
1407
target/x86/grub/grub.100-autoreconf.patch
Normal file
File diff suppressed because it is too large
Load Diff
11
target/x86/grub/grub.200-fix_mbr_handling.patch
Normal file
11
target/x86/grub/grub.200-fix_mbr_handling.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- grub-0.97.oorig/stage2/disk_io.c 2004-05-23 18:35:24.000000000 +0200
|
||||||
|
+++ grub-0.97/stage2/disk_io.c 2006-03-12 14:11:51.000000000 +0100
|
||||||
|
@@ -365,7 +365,7 @@ rawwrite (int drive, int sector, char *b
|
||||||
|
int
|
||||||
|
devwrite (int sector, int sector_count, char *buf)
|
||||||
|
{
|
||||||
|
-#if defined(GRUB_UTIL) && defined(__linux__)
|
||||||
|
+#if defined(GRUB_UTIL) && defined(__linux__) && !defined(SUPPORT_LOOPDEV)
|
||||||
|
if (current_partition != 0xFFFFFF
|
||||||
|
&& is_disk_device (device_map, current_drive))
|
||||||
|
{
|
@ -12,6 +12,12 @@ GRUB_DIR:=$(BUILD_DIR)/grub-0.97
|
|||||||
GRUB_BINARY:=grub/grub
|
GRUB_BINARY:=grub/grub
|
||||||
GRUB_TARGET_BINARY:=bin/grub
|
GRUB_TARGET_BINARY:=bin/grub
|
||||||
|
|
||||||
|
ifeq ($(BR2_TARGET_GRUB_SPLASH),y)
|
||||||
|
GRUB_CONFIGURE_ARGS+=--enable-graphics
|
||||||
|
GRUB_SPLASHIMAGE=splash.xpm.gz
|
||||||
|
endif
|
||||||
|
GRUB_CFLAGS=-DSUPPORT_LOOPDEV
|
||||||
|
|
||||||
$(DL_DIR)/$(GRUB_SOURCE):
|
$(DL_DIR)/$(GRUB_SOURCE):
|
||||||
$(WGET) -P $(DL_DIR) $(GRUB_SITE)/$(GRUB_SOURCE)
|
$(WGET) -P $(DL_DIR) $(GRUB_SITE)/$(GRUB_SOURCE)
|
||||||
|
|
||||||
@ -23,9 +29,10 @@ grub-source: $(DL_DIR)/$(GRUB_SOURCE) $(DL_DIR)/$(GRUB_PATCH)
|
|||||||
$(GRUB_DIR)/.unpacked: $(DL_DIR)/$(GRUB_SOURCE) $(DL_DIR)/$(GRUB_PATCH)
|
$(GRUB_DIR)/.unpacked: $(DL_DIR)/$(GRUB_SOURCE) $(DL_DIR)/$(GRUB_PATCH)
|
||||||
$(GRUB_CAT) $(DL_DIR)/$(GRUB_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
$(GRUB_CAT) $(DL_DIR)/$(GRUB_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
||||||
$(GRUB_CAT) $(DL_DIR)/$(GRUB_PATCH) | patch -p1 -d $(GRUB_DIR)
|
$(GRUB_CAT) $(DL_DIR)/$(GRUB_PATCH) | patch -p1 -d $(GRUB_DIR)
|
||||||
for i in `cat $(GRUB_DIR)/debian/patches/00list`; do \
|
for i in `grep -v "^#" $(GRUB_DIR)/debian/patches/00list`; do \
|
||||||
cat $(GRUB_DIR)/debian/patches/$$i | patch -p1 -d $(GRUB_DIR); \
|
cat $(GRUB_DIR)/debian/patches/$$i | patch -p1 -d $(GRUB_DIR); \
|
||||||
done
|
done
|
||||||
|
toolchain/patch-kernel.sh $(GRUB_DIR) target/x86/grub/ grub\*.patch
|
||||||
touch $(GRUB_DIR)/.unpacked
|
touch $(GRUB_DIR)/.unpacked
|
||||||
|
|
||||||
$(GRUB_DIR)/.configured: $(GRUB_DIR)/.unpacked
|
$(GRUB_DIR)/.configured: $(GRUB_DIR)/.unpacked
|
||||||
@ -41,6 +48,7 @@ $(GRUB_DIR)/.configured: $(GRUB_DIR)/.unpacked
|
|||||||
--mandir=/usr/man \
|
--mandir=/usr/man \
|
||||||
--infodir=/usr/info \
|
--infodir=/usr/info \
|
||||||
--disable-auto-linux-mem-opt \
|
--disable-auto-linux-mem-opt \
|
||||||
|
$(GRUB_CONFIGURE_ARGS) \
|
||||||
);
|
);
|
||||||
touch $(GRUB_DIR)/.configured
|
touch $(GRUB_DIR)/.configured
|
||||||
|
|
||||||
|
BIN
target/x86/grub/splash.xpm.gz
Normal file
BIN
target/x86/grub/splash.xpm.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user