]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
bootloaders: move bootloader build code to boot/
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 14 Mar 2010 17:20:45 +0000 (18:20 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 10 Jun 2010 19:05:12 +0000 (21:05 +0200)
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
33 files changed:
Config.in
Makefile
boot/Config.in [new file with mode: 0644]
boot/at91bootstrap/Config.in [moved from target/device/Atmel/at91bootstrap/Config.in with 92% similarity]
boot/at91bootstrap/at91bootstrap.mk [moved from target/device/Atmel/at91bootstrap/at91bootstrap.mk with 96% similarity]
boot/at91dataflashboot/Config.in [moved from target/device/Atmel/DataFlashBoot/Config.in with 76% similarity]
boot/at91dataflashboot/at91dataflashboot.mk [moved from target/device/Atmel/DataFlashBoot/DataflashBoot.mk with 100% similarity]
boot/common.mk [new file with mode: 0644]
boot/grub/Config.in [moved from target/x86/grub/Config.in with 100% similarity]
boot/grub/grub.100-autoreconf.patch [moved from target/x86/grub/grub.100-autoreconf.patch with 100% similarity]
boot/grub/grub.200-fix_mbr_handling.patch [moved from target/x86/grub/grub.200-fix_mbr_handling.patch with 100% similarity]
boot/grub/grub.300-honor_UCLIBC_HAS_LFS.patch [moved from target/x86/grub/grub.300-honor_UCLIBC_HAS_LFS.patch with 100% similarity]
boot/grub/grub.400-nic_update2.patch.bz2 [moved from target/x86/grub/grub.400-nic_update2.patch.bz2 with 100% similarity]
boot/grub/grub.mk [moved from target/x86/grub/grub.mk with 98% similarity]
boot/grub/menu.lst [moved from target/x86/grub/menu.lst with 100% similarity]
boot/grub/splash.xpm.gz [moved from target/x86/grub/splash.xpm.gz with 100% similarity]
boot/grub2/Config.in [moved from target/x86/grub2/Config.in with 100% similarity]
boot/grub2/grub-1.95-001-fix-grub-install.patch [moved from target/x86/grub2/grub-1.95-001-fix-grub-install.patch with 100% similarity]
boot/grub2/grub2.mk [moved from target/x86/grub2/grub2.mk with 98% similarity]
boot/syslinux/Config.in [moved from target/x86/syslinux/Config.in with 100% similarity]
boot/syslinux/syslinux-3.82-makefile.patch [moved from target/x86/syslinux/syslinux-3.82-makefile.patch with 100% similarity]
boot/syslinux/syslinux.mk [moved from target/x86/syslinux/syslinux.mk with 96% similarity]
boot/u-boot/Config.in [moved from target/u-boot/Config.in with 100% similarity]
boot/u-boot/Makefile.in [moved from target/u-boot/Makefile.in with 99% similarity]
boot/u-boot/u-boot-2009.01-include_asm-avr32_io.h.patch.avr32 [moved from target/u-boot/u-boot-2009.01-include_asm-avr32_io.h.patch.avr32 with 100% similarity]
boot/yaboot/Config.in [moved from target/powerpc/yaboot/Config.in with 100% similarity]
boot/yaboot/yaboot.mk [moved from target/powerpc/yaboot/yaboot.mk with 100% similarity]
target/Config.in
target/Makefile.in
target/device/Atmel/Config.in
target/device/Atmel/Makefile.in
target/powerpc/Makefile.in [deleted file]
target/x86/Makefile.in [deleted file]

index 435d4bdf5c4f2cc5ecc76229e0ca09ef108f0dcc..f5eb859070693267c2c21450aec7e6f0e1e6fb4d 100644 (file)
--- 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"
index 68732fa448036ad3600b9b46557f775ad772e783..67e41aeccc91276d60b074dc88b932d0fd4d0a7a 100644 (file)
--- 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 (file)
index 0000000..6f2796f
--- /dev/null
@@ -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
+
similarity index 92%
rename from target/device/Atmel/at91bootstrap/Config.in
rename to boot/at91bootstrap/Config.in
index 91e0b0887bbdffb6fb02ca6df22e60a61fc327c5..44db8f5a7439931f77ea45b9de898dd20f4a0c30 100644 (file)
@@ -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
 
similarity index 96%
rename from target/device/Atmel/at91bootstrap/at91bootstrap.mk
rename to boot/at91bootstrap/at91bootstrap.mk
index f681fa981175a53780f512eb44c466790e2bbda8..2072c6bf66557933abe06fe9eb501248e730e576 100644 (file)
@@ -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
similarity index 76%
rename from target/device/Atmel/DataFlashBoot/Config.in
rename to boot/at91dataflashboot/Config.in
index 1da5e6274286bef02049e82b4b8283aa9b654d9a..c6711c45de8f91e3294ba734133d1bd069c7fd9a 100644 (file)
@@ -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/boot/common.mk b/boot/common.mk
new file mode 100644 (file)
index 0000000..dc0bfb4
--- /dev/null
@@ -0,0 +1 @@
+include boot/*/*.mk
\ No newline at end of file
similarity index 98%
rename from target/x86/grub/grub.mk
rename to boot/grub/grub.mk
index af46244f498f6ab2deccdb2b57539317d6a3be7b..80f9b6dee192a8a1fa586d9de25af0b035f0a0cd 100644 (file)
@@ -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
similarity index 100%
rename from target/x86/grub/menu.lst
rename to boot/grub/menu.lst
similarity index 98%
rename from target/x86/grub2/grub2.mk
rename to boot/grub2/grub2.mk
index 46c6471e54bdfb55511f4df359625ad3a4f3139a..119397bb48359aa7a047942b31eae3ba8a173e5c 100644 (file)
@@ -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
similarity index 96%
rename from target/x86/syslinux/syslinux.mk
rename to boot/syslinux/syslinux.mk
index 75d4ad4580551a1487fbaa993287e11ddf231cc3..df27b6d8fe72e00aaaa18c866d929634689019f4 100644 (file)
@@ -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
similarity index 99%
rename from target/u-boot/Makefile.in
rename to boot/u-boot/Makefile.in
index d1bb5e531024783a3539a48424671adacfc02851..a875f2b5e514b082c74f7145dee69ab1d7904e70 100644 (file)
@@ -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)),)
index 5d536353862f7021ead3e160d699b53691c306b2..2d967931eb1b77bfcf024f90d757a561c14eeb91 100644 (file)
@@ -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"
index ffcdbb64ed6d97f7784fe86e02f14ae20659361b..8feb5644dc194f3a50781ae3aad79a978cb3e333 100644 (file)
@@ -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.
index 4e36b90923c13b81e4caff202f2a05e85048bb72..870c537d1267d30b87bf1b13645c05e9f7a09798 100644 (file)
@@ -66,8 +66,4 @@ config BR2_BOARD_PATH
 
 endmenu
 
-source "target/device/Atmel/DataFlashBoot/Config.in"
-
-source "target/device/Atmel/at91bootstrap/Config.in"
-
 endif
index c5dfffd70b68ffa5590c73bc71111e03bbedf757..6de54d7a9f1500722b37b2a3163451d4739f968b 100644 (file)
@@ -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 (file)
index 0d4698d..0000000
+++ /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 (file)
index 115035c..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-ifeq ($(BR2_i386),y)
-include target/x86/*/*.mk
-endif