Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 398477 | Differences between
and this patch

Collapse All | Expand All

(-)genkernel-3.4.22.1-vanilla/arch/x86/modules_load (+2 lines)
Lines 27-29 Link Here
27
# Filesystems
27
# Filesystems
28
MODULES_FS="ext2 ext3 ext4 btrfs reiserfs jfs nfs xfs fuse"
28
MODULES_FS="ext2 ext3 ext4 btrfs reiserfs jfs nfs xfs fuse"
29
29
30
# TuxOnIce
31
MODULES_TOI="tuxonice_bio tuxonice_compress tuxonice_core tuxonice_file tuxonice_swap tuxonice_userui"
(-)genkernel-3.4.22.1-vanilla/arch/x86_64/modules_load (+3 lines)
Lines 25-27 Link Here
25
25
26
# Filesystems
26
# Filesystems
27
MODULES_FS="ext2 ext3 ext4 btrfs reiserfs jfs nfs xfs fuse"
27
MODULES_FS="ext2 ext3 ext4 btrfs reiserfs jfs nfs xfs fuse"
28
29
# TuxOnIce
30
MODULES_TOI="tuxonice_bio tuxonice_compress tuxonice_core tuxonice_file tuxonice_swap tuxonice_userui"
(-)genkernel-3.4.22.1-vanilla/gen_cmdline.sh (+6 lines)
Lines 80-85 Link Here
80
  echo "	--splash-res=<res>	Select splash theme resolutions to install"
80
  echo "	--splash-res=<res>	Select splash theme resolutions to install"
81
  echo "	--splash=<theme>	Enable framebuffer splash using <theme>"
81
  echo "	--splash=<theme>	Enable framebuffer splash using <theme>"
82
  echo "	--splash-res=<res>	Select splash theme resolutions to install"
82
  echo "	--splash-res=<res>	Select splash theme resolutions to install"
83
  echo "	--tuxonice		Include tuxonice support"
84
  echo "	--no-tuxonice		Exclude tuxonice support"
83
  echo "	--do-keymap-auto	Forces keymap selection at boot"
85
  echo "	--do-keymap-auto	Forces keymap selection at boot"
84
  echo "	--keymap		Enables keymap selection support"
86
  echo "	--keymap		Enables keymap selection support"
85
  echo "	--no-keymap		Disables keymap selection support"
87
  echo "	--no-keymap		Disables keymap selection support"
Lines 395-400 Link Here
395
			SPLASH_RES=`parse_opt "$*"`
397
			SPLASH_RES=`parse_opt "$*"`
396
			print_info 2 "SPLASH_RES: ${SPLASH_RES}"
398
			print_info 2 "SPLASH_RES: ${SPLASH_RES}"
397
			;;
399
			;;
400
		--tuxonice|--no-tuxonice)
401
			CMD_TUXONICE=`parse_optbool "$*"`
402
			print_info 2 "TUXONICE: ${CMD_TUXONICE}"
403
			;;
398
		--install|--no-install)
404
		--install|--no-install)
399
			CMD_INSTALL=`parse_optbool "$*"`
405
			CMD_INSTALL=`parse_optbool "$*"`
400
			print_info 2 "CMD_INSTALL: ${CMD_INSTALL}"
406
			print_info 2 "CMD_INSTALL: ${CMD_INSTALL}"
(-)genkernel-3.4.22.1-vanilla/gen_configkernel.sh (+12 lines)
Lines 133-136 Link Here
133
	then
133
	then
134
		sed -i ${KERNEL_DIR}/.config -e 's/#\? \?CONFIG_FB_SPLASH is.*/CONFIG_FB_SPLASH=y/g'
134
		sed -i ${KERNEL_DIR}/.config -e 's/#\? \?CONFIG_FB_SPLASH is.*/CONFIG_FB_SPLASH=y/g'
135
	fi
135
	fi
136
137
	if isTrue ${CMD_TUXONICE}
138
	then
139
		if isTrue ${SPLASH} && [ -x "/sbin/tuxoniceui_fbsplash" ]
140
		then
141
			sed -i ${KERNEL_DIR}/.config \
142
				-e 's/#\? \?CONFIG_TOI_USERUI_DEFAULT_PATH.*/CONFIG_TOI_USERUI_DEFAULT_PATH=\"\/sbin\/tuxoniceui_fbsplash\"/g'
143
		elif [ -x "/sbin/tuxoniceui_text" ]
144
			sed -i ${KERNEL_DIR}/.config \
145
				-e 's/#\? \?CONFIG_TOI_USERUI_DEFAULT_PATH.*/CONFIG_TOI_USERUI_DEFAULT_PATH=\"\/sbin\/tuxoniceui_text\"/g'
146
		fi
147
	fi
136
}
148
}
(-)genkernel-3.4.22.1-vanilla/gen_determineargs.sh (+1 lines)
Lines 90-95 Link Here
90
	set_config_with_override STRING BOOTDIR              CMD_BOOTDIR              "/boot"
90
	set_config_with_override STRING BOOTDIR              CMD_BOOTDIR              "/boot"
91
91
92
	set_config_with_override BOOL   SPLASH               CMD_SPLASH
92
	set_config_with_override BOOL   SPLASH               CMD_SPLASH
93
	set_config_with_override BOOL   TUXONICE             CMD_TUXONICE             "no"
93
	set_config_with_override BOOL   POSTCLEAR            CMD_POSTCLEAR
94
	set_config_with_override BOOL   POSTCLEAR            CMD_POSTCLEAR
94
	set_config_with_override BOOL   MRPROPER             CMD_MRPROPER
95
	set_config_with_override BOOL   MRPROPER             CMD_MRPROPER
95
	set_config_with_override BOOL   MENUCONFIG           CMD_MENUCONFIG
96
	set_config_with_override BOOL   MENUCONFIG           CMD_MENUCONFIG
(-)genkernel-3.4.22.1-vanilla/gen_initramfs.sh (+41 lines)
Lines 373-378 Link Here
373
	fi
373
	fi
374
}
374
}
375
375
376
append_tuxonice(){
377
	if ! grep -q -E '^CONFIG_TOI_CORE=[y|m]' ${KERNEL_DIR}/.config
378
		if isTrue ${SPLASH}
379
		then
380
			tuxonice_bin="tuxoniceui_fbsplash"
381
		else
382
			tuxonice_bin="tuxoniceui_text"
383
		fi
384
		if [ -x "/sbin/${tuxonice_bin}" ]
385
		then
386
			print_info 1 "  >> Installing tuxonice support [ using ${tuxonice_bin} ]..."
387
			if [ -d "${TEMP}/initramfs-tuxonice-temp" ]
388
			then
389
				rm -r "${TEMP}/initramfs-tuxonice-temp/"
390
			fi
391
			mkdir -p "${TEMP}/initramfs-tuxonice-temp/sbin"
392
			cp "/sbin/${tuxonice_bin}" "${TEMP}/initramfs-tuxonice-temp/sbin" || gen_die "Could not copy over ${tuxonice_bin}!"
393
			if isTrue ${SPLASH}
394
			then
395
				[ -z "${SPLASH_THEME}" ] && [ -e /etc/conf.d/splash ] && source /etc/conf.d/splash
396
				[ -z "${SPLASH_THEME}" ] && SPLASH_THEME=default
397
				print_info 1 "  >> Using ${SPLASH_THEME} theme..."
398
				mkdir -p "${TEMP}/initramfs-tuxonice-temp/etc/splash"
399
				cd "${TEMP}/initramfs-tuxonice-temp/etc/splash"
400
				ln -snf "${SPLASH_THEME}" tuxonice
401
			fi
402
			cd "${TEMP}/initramfs-tuxonice-temp/"
403
			find . -print | cpio ${CPIO_ARGS} --append -F "${CPIO}" \
404
				|| gen_die "compressing tuxonice cpio"
405
			cd "${TEMP}"
406
			rm -r "${TEMP}/initramfs-tuxonice-temp/"
407
		else
408
			print_warning 1 '               >> No tuxonice-userui detected; skipping!'
409
		fi
410
	else
411
		print_warning 1 '               >> TuxOnIce not compiled into kernel; skipping!'
412
	fi
413
}
414
376
append_overlay(){
415
append_overlay(){
377
	cd ${INITRAMFS_OVERLAY}
416
	cd ${INITRAMFS_OVERLAY}
378
	find . -print | cpio ${CPIO_ARGS} --append -F "${CPIO}" \
417
	find . -print | cpio ${CPIO_ARGS} --append -F "${CPIO}" \
Lines 662-667 Link Here
662
701
663
	append_data 'splash' "${SPLASH}"
702
	append_data 'splash' "${SPLASH}"
664
703
704
	append_data 'tuxonice' "${TUXONICE}"
705
665
	if isTrue "${FIRMWARE}" && [ -n "${FIRMWARE_DIR}" ]
706
	if isTrue "${FIRMWARE}" && [ -n "${FIRMWARE_DIR}" ]
666
	then
707
	then
667
		append_data 'firmware'
708
		append_data 'firmware'
(-)genkernel-3.4.22.1-vanilla/genkernel.conf (+4 lines)
Lines 112-117 Link Here
112
# This supersedes the "SPLASH_THEME" option of /etc/conf.d/splash (in early space).
112
# This supersedes the "SPLASH_THEME" option of /etc/conf.d/splash (in early space).
113
# SPLASH_THEME="gentoo"
113
# SPLASH_THEME="gentoo"
114
114
115
# Include tuxonice support (tuxoniceui). Default is "no".
116
# It will support splash (tuxoniceui_fbsplash) if SPLASH is enabled.
117
# TUXONICE="yes"
118
115
119
116
# =========Keymap Settings=========
120
# =========Keymap Settings=========
117
#
121
#

Return to bug 398477