Browse Source

Andreas V. Meier:


			
			
				rocklinux
			
			
		
Andreas V. 'netrunner' Meier 19 years ago
parent
commit
ba3d604b4b
3 changed files with 11 additions and 16 deletions
  1. +10
    -0
      package/avm/bootsplash/kernelconfig.sh
  2. +0
    -16
      package/avm/bootsplash/pkg_config_linux.in
  3. +1
    -0
      package/avm/bootsplash/pkg_linux_pre.conf

+ 10
- 0
package/avm/bootsplash/kernelconfig.sh

@ -0,0 +1,10 @@
if [ x"$ROCKCFG_PKG_LINUX_BOOTSPLASH" == x'1' ]; then
for x in CONFIG_{FRAMEBUFFER_CONSOLE,FBCON_SPLASHSCREEN,BOOTSPLASH}; do
sed -i "/$x/d" $1
echo "$x=y" >> $1
done
else
for x in CONFIG_{FRAMEBUFFER_CONSOLE,FBCON_SPLASHSCREEN,BOOTSPLASH}; do
sed -i "/$x/d" $1
done
fi

+ 0
- 16
package/avm/bootsplash/pkg_config_linux.in

@ -23,21 +23,5 @@
if pkgcheck bootsplash X
then
bool 'Patch the kernel with the bootsplash patch' ROCKCFG_PKG_LINUX_BOOTSPLASH 0
if [ ! x"$ROCKCFG_PKG_LINUX_CUSTCONFIG" == x"1" ]; then
comment "Please activate custom kernel configuration above"
comment " to activate bootsplash during kernel build"
fi
if [ x"$ROCKCFG_PKG_LINUX_BOOTSPLASH" == x'1' ]; then
for x in CONFIG_{FRAMEBUFFER_CONSOLE,FBCON_SPLASHSCREEN,BOOTSPLASH}; do
grep -s -v $x config/$config.$swpid/linux.cfg > config/$config.$swpid/linux.cfg.$$
echo "$x=y" >> config/$config.$swpid/linux.cfg.$$
mv config/$config.$swpid/linux.cfg.$$ config/$config.$swpid/linux.cfg
done
else
for x in CONFIG_{FRAMEBUFFER_CONSOLE,FBCON_SPLASHSCREEN,BOOTSPLASH}; do
grep -s -v $x config/$config.$swpid/linux.cfg > config/$config.$swpid/linux.cfg.$$
mv config/$config.$swpid/linux.cfg.$$ config/$config.$swpid/linux.cfg
done
fi
fi

+ 1
- 0
package/avm/bootsplash/pkg_linux_pre.conf

@ -3,6 +3,7 @@ if [ "$ROCKCFG_PKG_LINUX_BOOTSPLASH" == '1' ]; then
| awk 'BEGIN{FS="="}{print $2}')
var_remove patchfiles " " "$base/download/mirror/${bspatch:0:1}/$bspatch"
var_append patchfiles " " "$base/download/mirror/${bspatch:0:1}/$bspatch"
var_append confscripts " " "$base/package/avm/bootsplash/kernelconfig.sh"
else
echo "No bootsplash in this config"
fi

Loading…
Cancel
Save