2010-12-30 18:39:50 +01:00
|
|
|
|
|
|
|
|
2011-01-25 20:27:23 +01:00
|
|
|
TAG-$(CONFIG_SEABIOS_MASTER)=origin/master
|
2011-01-23 07:47:09 +01:00
|
|
|
TAG-$(CONFIG_SEABIOS_STABLE)=rel-0.6.1.3
|
2010-12-30 18:39:50 +01:00
|
|
|
|
|
|
|
all: seabios
|
|
|
|
|
|
|
|
seabios: patch
|
2011-01-29 06:51:54 +01:00
|
|
|
cd seabios; $(MAKE)
|
2010-12-30 18:39:50 +01:00
|
|
|
|
|
|
|
patch: checkout
|
|
|
|
test -r seabios/.patched || \
|
|
|
|
perl -pi -e "s,#define CONFIG_COREBOOT 0,#define CONFIG_COREBOOT 1,;" \
|
|
|
|
-e "s,#define CONFIG_DEBUG_SERIAL 0,#define CONFIG_DEBUG_SERIAL 1,;" \
|
|
|
|
-e "s,#define CONFIG_VGAHOOKS 0,#define CONFIG_VGAHOOKS 1,;" \
|
|
|
|
seabios/src/config.h
|
|
|
|
touch seabios/.patched
|
|
|
|
|
|
|
|
checkout:
|
|
|
|
echo "Checking out SeaBIOS $(TAG-y)"
|
2011-01-25 20:27:23 +01:00
|
|
|
test -d seabios && ( cd seabios; git fetch ) || \
|
2010-12-30 18:39:50 +01:00
|
|
|
git clone git://git.linuxtogo.org/home/kevin/seabios.git seabios
|
2011-01-25 20:27:23 +01:00
|
|
|
cd seabios; git checkout -m $(TAG-y)
|
2010-12-30 18:39:50 +01:00
|
|
|
|
|
|
|
clean:
|
2011-01-29 06:51:54 +01:00
|
|
|
test -d seabios && (cd seabios; $(MAKE) clean) || exit 0
|
2010-12-30 18:39:50 +01:00
|
|
|
|
|
|
|
distclean:
|
|
|
|
rm -rf seabios
|
|
|
|
|
|
|
|
.PHONY: seabios
|