From 649b5b92509dba021ed47ef4c04f358de83ba36f Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Sun, 14 Mar 2010 18:20:45 +0100 Subject: bootloaders: move bootloader build code to boot/ Signed-off-by: Thomas Petazzoni --- boot/grub2/Config.in | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 boot/grub2/Config.in (limited to 'boot/grub2/Config.in') diff --git a/boot/grub2/Config.in b/boot/grub2/Config.in new file mode 100644 index 000000000..752639993 --- /dev/null +++ b/boot/grub2/Config.in @@ -0,0 +1,13 @@ +config BR2_TARGET_GRUB2 + bool "grub2" + help + The GRand Unified Bootloader for x86 systems, take #2. + +config BR2_TARGET_GRUB2_SPLASH + bool "Splashimage support" + depends on BR2_TARGET_GRUB2 + help + Add support for splashimage. + + A splashimage is a 14-color indexed .xpm picture which + is displayed as background for the grub menu. -- cgit v1.2.3 From 1d73ef9449f6ff0d5d3d9c93291c8869b27830cc Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Wed, 17 Mar 2010 08:39:20 +0100 Subject: grub2: remove non-existing options Much of the grub2.mk seems to have been copy/pasted from grub.mk. However, all the network/splashimage related ./configure options do not exist in grub2. Signed-off-by: Thomas Petazzoni --- boot/grub2/Config.in | 9 --------- boot/grub2/grub2.mk | 27 --------------------------- 2 files changed, 36 deletions(-) (limited to 'boot/grub2/Config.in') diff --git a/boot/grub2/Config.in b/boot/grub2/Config.in index 752639993..d27cb4cd5 100644 --- a/boot/grub2/Config.in +++ b/boot/grub2/Config.in @@ -2,12 +2,3 @@ config BR2_TARGET_GRUB2 bool "grub2" help The GRand Unified Bootloader for x86 systems, take #2. - -config BR2_TARGET_GRUB2_SPLASH - bool "Splashimage support" - depends on BR2_TARGET_GRUB2 - help - Add support for splashimage. - - A splashimage is a 14-color indexed .xpm picture which - is displayed as background for the grub menu. diff --git a/boot/grub2/grub2.mk b/boot/grub2/grub2.mk index 95fa24503..6c3bbefe3 100644 --- a/boot/grub2/grub2.mk +++ b/boot/grub2/grub2.mk @@ -18,39 +18,12 @@ GRUB2_SITE=$(BR2_DEBIAN_MIRROR)/debian/pool/main/g/grub2 GRUB2_PATCH_SITE:=$(GRUB2_SITE) GRUB2_CAT:=$(ZCAT) GRUB2_DIR:=$(BUILD_DIR)/grub-1.98 -GRUB2_BINARY:=grub2/grub2 -GRUB2_TARGET_BINARY:=sbin/grub2 -GRUB2_SPLASHIMAGE=$(TOPDIR)/boot/grub/splash.xpm.gz GRUB2_CFLAGS=-DSUPPORT_LOOPDEV ifeq ($(BR2_LARGEFILE),) GRUB2_CFLAGS+=-U_FILE_OFFSET_BITS endif -GRUB2_CONFIG-$(BR2_TARGET_GRUB2_SPLASH) += --enable-graphics -GRUB2_CONFIG-$(BR2_TARGET_GRUB2_DISKLESS) += --enable-diskless -GRUB2_CONFIG-$(BR2_TARGET_GRUB2_3c595) += --enable-3c595 -GRUB2_CONFIG-$(BR2_TARGET_GRUB2_3c90x) += --enable-3c90x -GRUB2_CONFIG-$(BR2_TARGET_GRUB2_davicom) += --enable-davicom -GRUB2_CONFIG-$(BR2_TARGET_GRUB2_e1000) += --enable-e1000 -GRUB2_CONFIG-$(BR2_TARGET_GRUB2_eepro100) += --enable-eepro100 -GRUB2_CONFIG-$(BR2_TARGET_GRUB2_epic100) += --enable-epic100 -GRUB2_CONFIG-$(BR2_TARGET_GRUB2_forcedeth) += --enable-forcedeth -GRUB2_CONFIG-$(BR2_TARGET_GRUB2_natsemi) += --enable-natsemi -GRUB2_CONFIG-$(BR2_TARGET_GRUB2_ns83820) += --enable-ns83820 -GRUB2_CONFIG-$(BR2_TARGET_GRUB2_ns8390) += --enable-ns8390 -GRUB2_CONFIG-$(BR2_TARGET_GRUB2_pcnet32) += --enable-pcnet32 -GRUB2_CONFIG-$(BR2_TARGET_GRUB2_pnic) += --enable-pnic -GRUB2_CONFIG-$(BR2_TARGET_GRUB2_rtl8139) += --enable-rtl8139 -GRUB2_CONFIG-$(BR2_TARGET_GRUB2_r8169) += --enable-r8169 -GRUB2_CONFIG-$(BR2_TARGET_GRUB2_sis900) += --enable-sis900 -GRUB2_CONFIG-$(BR2_TARGET_GRUB2_tg3) += --enable-tg3 -GRUB2_CONFIG-$(BR2_TARGET_GRUB2_tulip) += --enable-tulip -GRUB2_CONFIG-$(BR2_TARGET_GRUB2_tlan) += --enable-tlan -GRUB2_CONFIG-$(BR2_TARGET_GRUB2_undi) += --enable-undi -GRUB2_CONFIG-$(BR2_TARGET_GRUB2_via_rhine) += --enable-via-rhine -GRUB2_CONFIG-$(BR2_TARGET_GRUB2_w89c840) += --enable-w89c840 - $(DL_DIR)/$(GRUB2_SOURCE): $(call DOWNLOAD,$(GRUB2_SITE),$(GRUB2_SOURCE)) -- cgit v1.2.3 From 38a88b691834eece3fc9c0719d08b4f41ab2c474 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Mon, 31 May 2010 23:59:57 +0200 Subject: grub2: only available on x86 and PowerPC and mark as BROKEN The build process of grub2 breaks the compilation. It breaks with: ./configure: line 4766: syntax error near unexpected token `external' ./configure: line 4766: `AM_GNU_GETTEXT(external)' In addition to this, it later requires Ruby. Do we really want to make Buildroot depend on Ruby being installed on the host ? Do we really want to build our own Ruby ? Do we even care about Grub2 ? Signed-off-by: Thomas Petazzoni --- boot/grub2/Config.in | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'boot/grub2/Config.in') diff --git a/boot/grub2/Config.in b/boot/grub2/Config.in index d27cb4cd5..1301b5b80 100644 --- a/boot/grub2/Config.in +++ b/boot/grub2/Config.in @@ -1,4 +1,9 @@ config BR2_TARGET_GRUB2 bool "grub2" + # Only supports PC, Mac (Power, x86 and x86-64), Pegasos + depends on BR2_i386 || BR2_powerpc + # Build process is broken (./configure doesn't work, Ruby + # required, etc.) + depends on BROKEN help The GRand Unified Bootloader for x86 systems, take #2. -- cgit v1.2.3