Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions doc/genkernel.8.txt
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,10 @@ INITIALIZATION
*--plymouth-theme*=<theme>::
Embeds the given plymouth theme into the initramfs.

*--*[*no-*]*uvesafb*::
Installs, or not, the v86d helper binary into the initramfs for uvesafb
support. Needs the presence of the v86d binary in /sbin folder.

*--do-keymap-auto*::
Force keymap selection at boot.

Expand Down
6 changes: 6 additions & 0 deletions gen_cmdline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ longusage() {
echo " --splash=<theme> Enable framebuffer splash using <theme>"
echo " --splash-res=<res> Select splash theme resolutions to install"
echo " --plymouth-theme=<theme> Embed the given plymouth theme"
echo " --uvesafb Include uvesafb v86d helper support"
echo " --no-uvesafb Exclude uvesafb v86d helper support"
echo " --do-keymap-auto Forces keymap selection at boot"
echo " --keymap Enables keymap selection support"
echo " --no-keymap Disables keymap selection support"
Expand Down Expand Up @@ -445,6 +447,10 @@ parse_cmdline() {
print_info 2 "CMD_PLYMOUTH: ${CMD_PLYMOUTH}"
print_info 2 "PLYMOUTH_THEME: ${PLYMOUTH_THEME}"
;;
--uvesafb|--no-uvesafb)
CMD_UVESAFB=`parse_optbool "$*"`
print_info 2 "CMD_UVESAFB: ${CMD_UVESAFB}"
;;
--install|--no-install)
CMD_INSTALL=`parse_optbool "$*"`
print_info 2 "CMD_INSTALL: ${CMD_INSTALL}"
Expand Down
1 change: 1 addition & 0 deletions gen_determineargs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ determine_real_args() {

set_config_with_override BOOL SPLASH CMD_SPLASH
set_config_with_override BOOL PLYMOUTH CMD_PLYMOUTH
set_config_with_override BOOL UVESAFB CMD_UVESAFB "no"
set_config_with_override BOOL POSTCLEAR CMD_POSTCLEAR
set_config_with_override BOOL MRPROPER CMD_MRPROPER
set_config_with_override BOOL MENUCONFIG CMD_MENUCONFIG
Expand Down
30 changes: 30 additions & 0 deletions gen_initramfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ append_e2fsprogs(){

cd "${TEMP}"/initramfs-e2fsprogs-temp \
|| gen_die "cd '${TEMP}/initramfs-e2fsprogs-temp' failed"
log_future_cpio_content
find . -print | cpio ${CPIO_ARGS} --append -F "${CPIO}"
rm -rf "${TEMP}"/initramfs-e2fsprogs-temp > /dev/null
}
Expand Down Expand Up @@ -514,6 +515,33 @@ append_plymouth() {
rm -r "${TEMP}/initramfs-ply-temp/"
}

append_uvesafb(){
if [ -x "/sbin/v86d" ]
then
if [ -d "${TEMP}/initramfs-uvesafb-temp" ]
then
rm -rf "${TEMP}/initramfs-uvesafb-temp" > /dev/null
fi

mkdir -p ${TEMP}/initramfs-uvesafb-temp/dev
mkdir -p ${TEMP}/initramfs-uvesafb-temp/root

cd ${TEMP}/initramfs-uvesafb-temp/dev || gen_die "cannot cd to dev"
mknod -m 600 mem c 1 1 || gen_die "cannot mknod"

copy_binaries "${TEMP}/initramfs-uvesafb-temp/" /sbin/v86d

cd "${TEMP}/initramfs-uvesafb-temp/"
log_future_cpio_content
find . -print | cpio ${CPIO_ARGS} --append -F "${CPIO}" \
|| gen_die "compressing uvesafb cpio"
cd "${TEMP}"
rm -rf "${TEMP}/initramfs-uvesafb-temp" > /dev/null
else
gen_die "uvesafb support cannot be included: No /sbin/v86d file found. Please emerge sys-apps/v86d[x86emu]."
fi
}

append_overlay(){
cd ${INITRAMFS_OVERLAY}
log_future_cpio_content
Expand Down Expand Up @@ -1006,6 +1034,8 @@ create_initramfs() {
append_data 'plymouth' "${PLYMOUTH}"
isTrue "${PLYMOUTH}" && append_data 'drm'

append_data 'uvesafb' "${UVESAFB}"

if isTrue "${FIRMWARE}" && [ -n "${FIRMWARE_DIR}" ]
then
append_data 'firmware'
Expand Down
3 changes: 3 additions & 0 deletions genkernel.conf
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ USECOLOR="yes"
# Add new kernel to grub?
#BOOTLOADER="grub"

# Enable support for uvesafb. Default is "no"
#UVESAFB="yes"

# Enable splashutils in early space (initrd). Default is "no".
#SPLASH="yes"

Expand Down