Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mkimage-profiles
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
mkimage-profiles
Commits
0950ba80
Commit
0950ba80
authored
Mar 11, 2020
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
grub: added gfxmode support
parent
a6051acf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
5 deletions
+43
-5
01gfxterm.cfg
features.in/grub/cfg.in/01gfxterm.cfg
+37
-0
config.mk
features.in/grub/config.mk
+0
-5
generate.mk
features.in/grub/generate.mk
+6
-0
No files found.
features.in/grub/cfg.in/01gfxterm.cfg
0 → 100644
View file @
0950ba80
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
font=${prefix}/fonts/unicode.pf2
if loadfont "$font" ; then
set gfxmode=auto
load_video
insmod gfxterm
terminal_output gfxterm
if [ -d ${prefix}/locale ]; then
set locale_dir=${prefix}/locale
insmod gettext
fi
insmod gfxmenu
insmod jpeg
insmod png
if [ -f ${prefix}/themes/@grubtheme@/theme.txt ]; then
set theme=${prefix}/themes/@grubtheme@/theme.txt;
export theme
fi
set timeout_style=menu
set menu_color_normal=white/black
set menu_color_highlight=black/white
set color_normal=white/black
set color_highlight=black/white
fi
features.in/grub/config.mk
View file @
0950ba80
...
...
@@ -16,17 +16,12 @@ use/grub: ; @:
endif
ifeq (,$(filter-out i586 x86_64,$(ARCH)))
# UI is overwritten
use/grub/ui/%: use/grub
@$(call set,GRUB_UI,$*)
@if [ "$*" == gfxboot ]; then \
$(call add,STAGE1_PACKAGES,gfxboot); \
$(call add,STAGE1_BRANDING,bootloader); \
fi
else
use/grub/ui/%: use/grub; @:
endif
use/grub/%.cfg: use/grub
@$(call add,GRUB_CFG,$*)
...
...
features.in/grub/generate.mk
View file @
0950ba80
...
...
@@ -19,6 +19,10 @@ ifndef GRUB_DIRECT
GRUB_CFG := $(GRUB_CFG) $(SUBPROFILE_DIRS) defaults fwsetup_efi
endif
ifdef GRUB_UI
GRUB_CFG := $(GRUB_CFG) gfxterm
endif
ifdef LOCALE
GRUB_CFG := $(GRUB_CFG) lang
endif
...
...
@@ -94,6 +98,8 @@ bootargs: clean
@if [ $$(echo $(KFLAVOURS) | wc -w) -gt 1 ]; then \
sed -i "s,@KFLAVOUR@,$(KFLAVOURS),g" $(DSTCFGS); \
fi
GRUBTHEME=$$(cut -d "-" -f2 <<< $(BRANDING)); \
sed -i "s,@grubtheme@,$$GRUBTHEME,g" $(DSTCFGS); \
clean: copy
@if [ "$(GRUB_UI)" = gfxboot ]; then \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment