63a8f2a7c2
VIDEO_MB is a variable that defines how many MB of RAM will be used for onboard graphics frame buffer. It's northbridge-dependent which values for CONFIG_MB are valid (but not board-dependent). This patch adds choices for menuconfig to select the VIDEO_MB value for: - Intel 82810 - Intel 82830 - VIA CN400 - VIA CN700 Note: CN400 and CN700 are based on the CX700 datasheet, not sure if they're correct. If somebody has CN400 and CN700 datasheets, please verify. We drop all per-board VIDEO_MB variables in per-board Kconfig files as there's a northbridge-specific option/default now (plus the user can override the value if needed in menuconfig). As CONFIG_MB is chipset-specific but not board-specific (and never was), filter it in util/compareboard/compareboard, we don't need to match those values. Finally, put "CPU", "Northbridge", "Southbridge", "Super I/O", and "Devices" sections into the "Chipset" menu, where NB-specific options will appear if you select a board using a certain NB, SB-specific options would appear in the "Southbridge" section etc. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Myles Watson <mylesgw@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4866 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
79 lines
2.2 KiB
Bash
Executable file
79 lines
2.2 KiB
Bash
Executable file
#!/bin/bash
|
|
# $1 board name
|
|
|
|
normalize() {
|
|
# $1 filename
|
|
cat $1 | while read line; do
|
|
if echo $line | grep '= 0x' > /dev/null; then
|
|
first=`echo $line | cut -d= -f1`
|
|
last=`echo $line |cut -d= -f2 |cut -d\; -f1`
|
|
echo $first = $(($last + 0))\;
|
|
else
|
|
echo $line
|
|
fi
|
|
done
|
|
}
|
|
|
|
BOARDPATH=`echo $1 | sed s,/,_,g`
|
|
|
|
A=`mktemp`
|
|
rm -rf $A
|
|
mkdir -p $A
|
|
|
|
sort coreboot-builds/$BOARDPATH/fallback/ldoptions > $A/old
|
|
sort build/ldoptions > $A/new
|
|
|
|
sed \
|
|
-e "/^CONFIG_CONSOLE_/ d" \
|
|
-e "/^CONFIG_RESET_/ d" \
|
|
-e "/^CONFIG_XIP_ROM_/ d" \
|
|
-e "/^CONFIG_PRECOMPRESSED_PAYLOAD / d" \
|
|
-e "/^CONFIG_MULTIBOOT / d" \
|
|
-e "/^CONFIG_ARCH_POWERPC / d" \
|
|
-e "/^CONFIG_RESET / d" \
|
|
-e "/^CONFIG_ROM_PAYLOAD / d" \
|
|
-e "/^CONFIG_ROM_SECTION_/ d" \
|
|
-e "/^CONFIG_UNCOMPRESSED / d" \
|
|
-e "/^CONFIG_COMPRESS / d" \
|
|
-e "/^CONFIG_COMPRESSED_PAYLOAD_LZMA / d" \
|
|
-e "/^CONFIG_ASSEMBLER_DEBUG / d" \
|
|
-e "/^CONFIG_HAVE_FAILOVER_BOOT / d" \
|
|
-e "/^CONFIG_FAILOVER_SIZE / d" \
|
|
-e "/^CONFIG_FALLBACK_SIZE / d" \
|
|
-e "/^CONFIG_ROMBASE / d" \
|
|
-e "/^CONFIG_ROM_IMAGE_SIZE / d" \
|
|
-e "/^CONFIG_STACK_SIZE / d" \
|
|
-e "/^CONFIG_GDB_STUB / d" \
|
|
-e "/^CONFIG_VIDEO_MB / d" \
|
|
$A/old > $A/old.filtered
|
|
sed \
|
|
-e "/^CONFIG_VENDOR_/ d" \
|
|
-e "/^CONFIG_ARCH_POWERPC / d" \
|
|
-e "/^CONFIG_[MAXIMUMDEFAULT]*_CONSOLE_LOGLEVEL_/ d" \
|
|
-e "/^CONFIG_COREBOOT_ROMSIZE_/ d" \
|
|
-e "/^CONFIG_BOARD_/ d" \
|
|
-e "/^CONFIG_[NORTHSOUTH]*BRIDGE_/ d" \
|
|
-e "/^CONFIG_SUPERIO_/ d" \
|
|
-e "/^CONFIG_GX1_VIDEOMODE_/ d" \
|
|
-e "/^CONFIG_CONSOLE_/ d" \
|
|
-e "/^CONFIG_COREBOOT_V4/ d" \
|
|
-e "/^CONFIG_PAYLOAD_/ d" \
|
|
-e "/^CONFIG_XIP_ROM_/ d" \
|
|
-e "/^CONFIG_MULTIBOOT/ d" \
|
|
-e "/^CONFIG_HAVE_FAILOVER_BOOT / d" \
|
|
-e "/^CONFIG_COMPRESSED_PAYLOAD_LZMA / d" \
|
|
-e "/^CONFIG_CPU_[A-Z]*_MODEL_/ d" \
|
|
-e "/^CONFIG_CPU_[A-Z]*_SOCKET_/ d" \
|
|
-e "/^CONFIG_ROMBASE / d" \
|
|
-e "/^CONFIG_ROM_IMAGE_SIZE / d" \
|
|
-e "/^CONFIG_STACK_SIZE / d" \
|
|
-e "/^CONFIG_GDB_STUB / d" \
|
|
-e "/^CONFIG_VIDEO_MB / d" \
|
|
$A/new > $A/new.filtered
|
|
|
|
normalize $A/old.filtered > $A/old.normalized
|
|
normalize $A/new.filtered > $A/new.normalized
|
|
|
|
diff -u $A/old.normalized $A/new.normalized |grep ^[+-][^+-]|sed -e "s,^+,p ," -e "s,^-,m ," |sort -k2,2 -k1,1 |sed -e "s,^p ,+," -e "s,^m ,-,"
|
|
|
|
rm -rf $A
|