summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2010-03-14 18:20:45 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2010-06-10 21:05:12 +0200
commit649b5b92509dba021ed47ef4c04f358de83ba36f (patch)
treee0f22590fe9a99eba5565bbb4738b6f833b2c9fb
parent7c709f4affc44f3bbc9a09fec8d84ae3807e31e7 (diff)
downloadbuildroot-novena-649b5b92509dba021ed47ef4c04f358de83ba36f.tar.gz
buildroot-novena-649b5b92509dba021ed47ef4c04f358de83ba36f.zip
bootloaders: move bootloader build code to boot/
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--Config.in2
-rw-r--r--Makefile3
-rw-r--r--boot/Config.in12
-rw-r--r--boot/at91bootstrap/Config.in (renamed from target/device/Atmel/at91bootstrap/Config.in)5
-rw-r--r--boot/at91bootstrap/at91bootstrap.mk (renamed from target/device/Atmel/at91bootstrap/at91bootstrap.mk)2
-rw-r--r--boot/at91dataflashboot/Config.in (renamed from target/device/Atmel/DataFlashBoot/Config.in)6
-rw-r--r--boot/at91dataflashboot/at91dataflashboot.mk (renamed from target/device/Atmel/DataFlashBoot/DataflashBoot.mk)0
-rw-r--r--boot/common.mk1
-rw-r--r--boot/grub/Config.in (renamed from target/x86/grub/Config.in)0
-rw-r--r--boot/grub/grub.100-autoreconf.patch (renamed from target/x86/grub/grub.100-autoreconf.patch)0
-rw-r--r--boot/grub/grub.200-fix_mbr_handling.patch (renamed from target/x86/grub/grub.200-fix_mbr_handling.patch)0
-rw-r--r--boot/grub/grub.300-honor_UCLIBC_HAS_LFS.patch (renamed from target/x86/grub/grub.300-honor_UCLIBC_HAS_LFS.patch)0
-rw-r--r--boot/grub/grub.400-nic_update2.patch.bz2 (renamed from target/x86/grub/grub.400-nic_update2.patch.bz2)bin328903 -> 328903 bytes
-rw-r--r--boot/grub/grub.mk (renamed from target/x86/grub/grub.mk)2
-rw-r--r--boot/grub/menu.lst (renamed from target/x86/grub/menu.lst)0
-rw-r--r--boot/grub/splash.xpm.gz (renamed from target/x86/grub/splash.xpm.gz)bin45185 -> 45185 bytes
-rw-r--r--boot/grub2/Config.in (renamed from target/x86/grub2/Config.in)0
-rw-r--r--boot/grub2/grub-1.95-001-fix-grub-install.patch (renamed from target/x86/grub2/grub-1.95-001-fix-grub-install.patch)0
-rw-r--r--boot/grub2/grub2.mk (renamed from target/x86/grub2/grub2.mk)2
-rw-r--r--boot/syslinux/Config.in (renamed from target/x86/syslinux/Config.in)0
-rw-r--r--boot/syslinux/syslinux-3.82-makefile.patch (renamed from target/x86/syslinux/syslinux-3.82-makefile.patch)0
-rw-r--r--boot/syslinux/syslinux.mk (renamed from target/x86/syslinux/syslinux.mk)2
-rw-r--r--boot/u-boot/Config.in (renamed from target/u-boot/Config.in)0
-rw-r--r--boot/u-boot/Makefile.in (renamed from target/u-boot/Makefile.in)2
-rw-r--r--boot/u-boot/u-boot-2009.01-include_asm-avr32_io.h.patch.avr32 (renamed from target/u-boot/u-boot-2009.01-include_asm-avr32_io.h.patch.avr32)0
-rw-r--r--boot/yaboot/Config.in (renamed from target/powerpc/yaboot/Config.in)0
-rw-r--r--boot/yaboot/yaboot.mk (renamed from target/powerpc/yaboot/yaboot.mk)0
-rw-r--r--target/Config.in9
-rw-r--r--target/Makefile.in8
-rw-r--r--target/device/Atmel/Config.in4
-rw-r--r--target/device/Atmel/Makefile.in12
-rw-r--r--target/powerpc/Makefile.in1
-rw-r--r--target/x86/Makefile.in3
33 files changed, 27 insertions, 49 deletions
diff --git a/Config.in b/Config.in
index 435d4bdf5..f5eb85907 100644
--- a/Config.in
+++ b/Config.in
@@ -293,4 +293,6 @@ source "package/Config.in"
source "fs/Config.in"
+source "boot/Config.in"
+
source "target/Config.in"
diff --git a/Makefile b/Makefile
index 68732fa44..67e41aecc 100644
--- a/Makefile
+++ b/Makefile
@@ -320,8 +320,9 @@ ifeq ($(BR2_ENABLE_LOCALE_PURGE),y)
TARGETS+=target-purgelocales
endif
-# target stuff is last so it can override anything else
+include boot/common.mk
include target/Makefile.in
+include fs/common.mk
TARGETS+=erase-fakeroots
diff --git a/boot/Config.in b/boot/Config.in
new file mode 100644
index 000000000..6f2796f0c
--- /dev/null
+++ b/boot/Config.in
@@ -0,0 +1,12 @@
+menu "Bootloaders"
+
+source "boot/grub/Config.in"
+source "boot/grub2/Config.in"
+source "boot/syslinux/Config.in"
+source "boot/yaboot/Config.in"
+source "boot/u-boot/Config.in"
+source "boot/at91bootstrap/Config.in"
+source "boot/at91dataflashboot/Config.in"
+
+endmenu
+
diff --git a/target/device/Atmel/at91bootstrap/Config.in b/boot/at91bootstrap/Config.in
index 91e0b0887..44db8f5a7 100644
--- a/target/device/Atmel/at91bootstrap/Config.in
+++ b/boot/at91bootstrap/Config.in
@@ -1,7 +1,6 @@
menuconfig BR2_TARGET_AT91BOOTSTRAP
- depends on BR2_TARGET_AT91SAM9260EK || BR2_TARGET_AT91SAM9260DFC || BR2_TARGET_AT91SAM9260PF || \
- BR2_TARGET_AT91SAM9261EK || BR2_TARGET_AT91SAM9263EK || BR2_TARGET_AT91SAM9XEEK || BR2_TARGET_AT91SAM9G20DFC
- bool "Build AT91 Bootstrap for selected chip"
+ depends on BR2_arm
+ bool "AT91 Bootstrap"
if BR2_TARGET_AT91BOOTSTRAP
diff --git a/target/device/Atmel/at91bootstrap/at91bootstrap.mk b/boot/at91bootstrap/at91bootstrap.mk
index f681fa981..2072c6bf6 100644
--- a/target/device/Atmel/at91bootstrap/at91bootstrap.mk
+++ b/boot/at91bootstrap/at91bootstrap.mk
@@ -39,7 +39,7 @@ $(DL_DIR)/$(AT91BOOTSTRAP_SOURCE):
$(AT91BOOTSTRAP_DIR)/.unpacked: $(DL_DIR)/$(AT91BOOTSTRAP_SOURCE)
mkdir -p $(BUILD_DIR)
$(AT91BOOTSTRAP_ZCAT) $(DL_DIR)/$(AT91BOOTSTRAP_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
- toolchain/patch-kernel.sh $(AT91BOOTSTRAP_DIR) target/device/Atmel/at91bootstrap/ at91bootstrap-$(AT91BOOTSTRAP_VERSION)\*.patch
+ toolchain/patch-kernel.sh $(AT91BOOTSTRAP_DIR) boot/at91bootstrap/ at91bootstrap-$(AT91BOOTSTRAP_VERSION)\*.patch
touch $(AT91BOOTSTRAP_DIR)/.unpacked
$(AT91BOOTSTRAP_DIR)/.configured: $(AT91BOOTSTRAP_DIR)/.unpacked .config
diff --git a/target/device/Atmel/DataFlashBoot/Config.in b/boot/at91dataflashboot/Config.in
index 1da5e6274..c6711c45d 100644
--- a/target/device/Atmel/DataFlashBoot/Config.in
+++ b/boot/at91dataflashboot/Config.in
@@ -1,6 +1,6 @@
-config BR2_TARGET_DATAFLASHBOOT
- depends on BR2_TARGET_AT91RM9200 || BR2_TARGET_AT91SAM9261 || BR2_TARGET_AT91SAM9261S
- bool "Build Dataflashboot for selected chip"
+menuconfig BR2_TARGET_DATAFLASHBOOT
+ depends on BR2_arm
+ bool "AT91 DataFlashBoot"
choice
prompt "Target Architecture"
diff --git a/target/device/Atmel/DataFlashBoot/DataflashBoot.mk b/boot/at91dataflashboot/at91dataflashboot.mk
index 8939c2897..8939c2897 100644
--- a/target/device/Atmel/DataFlashBoot/DataflashBoot.mk
+++ b/boot/at91dataflashboot/at91dataflashboot.mk
diff --git a/boot/common.mk b/boot/common.mk
new file mode 100644
index 000000000..dc0bfb496
--- /dev/null
+++ b/boot/common.mk
@@ -0,0 +1 @@
+include boot/*/*.mk \ No newline at end of file
diff --git a/target/x86/grub/Config.in b/boot/grub/Config.in
index bc7a73e73..bc7a73e73 100644
--- a/target/x86/grub/Config.in
+++ b/boot/grub/Config.in
diff --git a/target/x86/grub/grub.100-autoreconf.patch b/boot/grub/grub.100-autoreconf.patch
index e5dd8343a..e5dd8343a 100644
--- a/target/x86/grub/grub.100-autoreconf.patch
+++ b/boot/grub/grub.100-autoreconf.patch
diff --git a/target/x86/grub/grub.200-fix_mbr_handling.patch b/boot/grub/grub.200-fix_mbr_handling.patch
index fdee0ef87..fdee0ef87 100644
--- a/target/x86/grub/grub.200-fix_mbr_handling.patch
+++ b/boot/grub/grub.200-fix_mbr_handling.patch
diff --git a/target/x86/grub/grub.300-honor_UCLIBC_HAS_LFS.patch b/boot/grub/grub.300-honor_UCLIBC_HAS_LFS.patch
index 5b941865b..5b941865b 100644
--- a/target/x86/grub/grub.300-honor_UCLIBC_HAS_LFS.patch
+++ b/boot/grub/grub.300-honor_UCLIBC_HAS_LFS.patch
diff --git a/target/x86/grub/grub.400-nic_update2.patch.bz2 b/boot/grub/grub.400-nic_update2.patch.bz2
index 8592f15ff..8592f15ff 100644
--- a/target/x86/grub/grub.400-nic_update2.patch.bz2
+++ b/boot/grub/grub.400-nic_update2.patch.bz2
Binary files differ
diff --git a/target/x86/grub/grub.mk b/boot/grub/grub.mk
index af46244f4..80f9b6dee 100644
--- a/target/x86/grub/grub.mk
+++ b/boot/grub/grub.mk
@@ -75,7 +75,7 @@ $(GRUB_DIR)/.unpacked: $(DL_DIR)/$(GRUB_SOURCE) $(DL_DIR)/$(GRUB_PATCH)
for i in `grep -v "^#" $(GRUB_DIR)/debian/patches/00list`; do \
cat $(GRUB_DIR)/debian/patches/$$i | patch -p1 -d $(GRUB_DIR); \
done
- toolchain/patch-kernel.sh $(GRUB_DIR) target/x86/grub grub.\*.patch{,.bz2}
+ toolchain/patch-kernel.sh $(GRUB_DIR) boot/grub grub.\*.patch{,.bz2}
touch $@
$(GRUB_DIR)/.configured: $(GRUB_DIR)/.unpacked
diff --git a/target/x86/grub/menu.lst b/boot/grub/menu.lst
index d76bf6323..d76bf6323 100644
--- a/target/x86/grub/menu.lst
+++ b/boot/grub/menu.lst
diff --git a/target/x86/grub/splash.xpm.gz b/boot/grub/splash.xpm.gz
index 96e88822a..96e88822a 100644
--- a/target/x86/grub/splash.xpm.gz
+++ b/boot/grub/splash.xpm.gz
Binary files differ
diff --git a/target/x86/grub2/Config.in b/boot/grub2/Config.in
index 752639993..752639993 100644
--- a/target/x86/grub2/Config.in
+++ b/boot/grub2/Config.in
diff --git a/target/x86/grub2/grub-1.95-001-fix-grub-install.patch b/boot/grub2/grub-1.95-001-fix-grub-install.patch
index 3287b61c8..3287b61c8 100644
--- a/target/x86/grub2/grub-1.95-001-fix-grub-install.patch
+++ b/boot/grub2/grub-1.95-001-fix-grub-install.patch
diff --git a/target/x86/grub2/grub2.mk b/boot/grub2/grub2.mk
index 46c6471e5..119397bb4 100644
--- a/target/x86/grub2/grub2.mk
+++ b/boot/grub2/grub2.mk
@@ -75,7 +75,7 @@ $(GRUB2_DIR)/.unpacked: $(DL_DIR)/$(GRUB2_SOURCE) $(DL_DIR)/$(GRUB2_PATCH)
for i in `grep -v "^#" $(GRUB2_DIR)/debian/patches/00list`; do \
cat $(GRUB2_DIR)/debian/patches/$$i | patch -p1 -d $(GRUB2_DIR); \
done
- toolchain/patch-kernel.sh $(GRUB2_DIR) target/x86/grub2 grub-\*.patch
+ toolchain/patch-kernel.sh $(GRUB2_DIR) boot/grub2 grub-\*.patch
touch $@
$(GRUB2_DIR)/.configured: $(GRUB2_DIR)/.unpacked
diff --git a/target/x86/syslinux/Config.in b/boot/syslinux/Config.in
index c65bc1f10..c65bc1f10 100644
--- a/target/x86/syslinux/Config.in
+++ b/boot/syslinux/Config.in
diff --git a/target/x86/syslinux/syslinux-3.82-makefile.patch b/boot/syslinux/syslinux-3.82-makefile.patch
index 9e98a7879..9e98a7879 100644
--- a/target/x86/syslinux/syslinux-3.82-makefile.patch
+++ b/boot/syslinux/syslinux-3.82-makefile.patch
diff --git a/target/x86/syslinux/syslinux.mk b/boot/syslinux/syslinux.mk
index 75d4ad458..df27b6d8f 100644
--- a/target/x86/syslinux/syslinux.mk
+++ b/boot/syslinux/syslinux.mk
@@ -38,7 +38,7 @@ syslinux-source: $(DL_DIR)/$(SYSLINUX_SOURCE)
$(SYSLINUX_DIR)/Makefile: $(DL_DIR)/$(SYSLINUX_SOURCE) $(SYSLINUX_PATCH)
$(SYSLINUX_CAT) $(DL_DIR)/$(SYSLINUX_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
- toolchain/patch-kernel.sh $(SYSLINUX_DIR) target/x86/syslinux/ \*.patch
+ toolchain/patch-kernel.sh $(SYSLINUX_DIR) boot/syslinux/ \*.patch
touch -c $@
$(SYSLINUX_DIR)/isolinux.bin $(SYSLINUX_DIR)/pxelinux.bin: $(SYSLINUX_DIR)/Makefile
diff --git a/target/u-boot/Config.in b/boot/u-boot/Config.in
index ca47e18f9..ca47e18f9 100644
--- a/target/u-boot/Config.in
+++ b/boot/u-boot/Config.in
diff --git a/target/u-boot/Makefile.in b/boot/u-boot/Makefile.in
index d1bb5e531..a875f2b5e 100644
--- a/target/u-boot/Makefile.in
+++ b/boot/u-boot/Makefile.in
@@ -70,7 +70,7 @@ $(U_BOOT_DIR)/.unpacked: $(DL_DIR)/$(U_BOOT_SOURCE)
touch $@
$(U_BOOT_DIR)/.patched: $(U_BOOT_DIR)/.unpacked
- toolchain/patch-kernel.sh $(U_BOOT_DIR) target/u-boot \
+ toolchain/patch-kernel.sh $(U_BOOT_DIR) boot/u-boot \
u-boot-$(U_BOOT_VERSION)-\*.patch \
u-boot-$(U_BOOT_VERSION)-\*.patch.$(ARCH)
ifneq ($(strip $(U_BOOT_ARCH_PATCH_DIR)),)
diff --git a/target/u-boot/u-boot-2009.01-include_asm-avr32_io.h.patch.avr32 b/boot/u-boot/u-boot-2009.01-include_asm-avr32_io.h.patch.avr32
index 07cddb000..07cddb000 100644
--- a/target/u-boot/u-boot-2009.01-include_asm-avr32_io.h.patch.avr32
+++ b/boot/u-boot/u-boot-2009.01-include_asm-avr32_io.h.patch.avr32
diff --git a/target/powerpc/yaboot/Config.in b/boot/yaboot/Config.in
index 75da815ab..75da815ab 100644
--- a/target/powerpc/yaboot/Config.in
+++ b/boot/yaboot/Config.in
diff --git a/target/powerpc/yaboot/yaboot.mk b/boot/yaboot/yaboot.mk
index cbeae5086..cbeae5086 100644
--- a/target/powerpc/yaboot/yaboot.mk
+++ b/boot/yaboot/yaboot.mk
diff --git a/target/Config.in b/target/Config.in
index 5d5363538..2d967931e 100644
--- a/target/Config.in
+++ b/target/Config.in
@@ -1,12 +1,3 @@
-menu "Bootloaders"
-
-source "target/x86/grub/Config.in"
-#source "target/x86/grub2/Config.in"
-source "target/x86/syslinux/Config.in"
-source "target/powerpc/yaboot/Config.in"
-source "target/u-boot/Config.in"
-endmenu
-
menu "Kernel"
choice
prompt "Kernel type"
diff --git a/target/Makefile.in b/target/Makefile.in
index ffcdbb64e..8feb5644d 100644
--- a/target/Makefile.in
+++ b/target/Makefile.in
@@ -54,16 +54,8 @@ include target/generic/Makefile.in
# this eventually adds the kernel target to TARGETS:
include target/device/Makefile.in
-include target/x86/Makefile.in
-include target/powerpc/Makefile.in
include target/xtensa/Makefile.in
-ifeq ($(BR2_TARGET_UBOOT),y)
-include target/u-boot/Makefile.in
-endif
-
-include fs/common.mk
-
# kernel rules
# We already did add the kernel target to TARGETS and now just pull in the rules
# to actually build this target.
diff --git a/target/device/Atmel/Config.in b/target/device/Atmel/Config.in
index 4e36b9092..870c537d1 100644
--- a/target/device/Atmel/Config.in
+++ b/target/device/Atmel/Config.in
@@ -66,8 +66,4 @@ config BR2_BOARD_PATH
endmenu
-source "target/device/Atmel/DataFlashBoot/Config.in"
-
-source "target/device/Atmel/at91bootstrap/Config.in"
-
endif
diff --git a/target/device/Atmel/Makefile.in b/target/device/Atmel/Makefile.in
index c5dfffd70..6de54d7a9 100644
--- a/target/device/Atmel/Makefile.in
+++ b/target/device/Atmel/Makefile.in
@@ -66,18 +66,6 @@ include target/device/Atmel/*/Makefile.in
UBOOT_CONFIG:=$(UBOOT_BOARD_NAME)_config
UBOOT_CONFIG_FILE:=$(BOARD_PATH)/u-boot/$(UBOOT_BOARD_NAME).h
-#ifeq ($(BR2_TARGET_UBOOT_AT91),y)
-#include $(ATMEL_PATH)/u-boot/u-boot.mk
-#endif
-
-ifeq ($(BR2_TARGET_DATAFLASHBOOT),y)
-include $(ATMEL_PATH)/DataFlashBoot/DataflashBoot.mk
-endif
-
-ifeq ($(BR2_TARGET_AT91BOOTSTRAP),y)
-include $(ATMEL_PATH)/at91bootstrap/at91bootstrap.mk
-endif
-
atmel_status:
@echo BUILD_DIR=$(BUILD_DIR)
@echo BOARD_NAME=$(BOARD_NAME)
diff --git a/target/powerpc/Makefile.in b/target/powerpc/Makefile.in
deleted file mode 100644
index 0d4698d04..000000000
--- a/target/powerpc/Makefile.in
+++ /dev/null
@@ -1 +0,0 @@
-include target/powerpc/*/*.mk
diff --git a/target/x86/Makefile.in b/target/x86/Makefile.in
deleted file mode 100644
index 115035cbb..000000000
--- a/target/x86/Makefile.in
+++ /dev/null
@@ -1,3 +0,0 @@
-ifeq ($(BR2_i386),y)
-include target/x86/*/*.mk
-endif