Pull request for branch for-2011.08/bootloaders
The following changes since commit bd76bc5f80b963570e8eda92efc961e683264402:
CHANGES: update with recent changes (2011-07-11 07:44:24 +0200)
are available in the git repository at:
http://free-electrons.com/~thomas/buildroot.git for-2011.08/bootloaders
Philippe Reynes (1):
Add x-loader bootloader
Thomas Petazzoni (10):
linux: rename LINUX26 to LINUX
linux: convert to the GENTARGETS infrastructure
u-boot: rename to uboot
Improve TARGETS handling for bootloaders and kernel
linux: allow specification of a custom Git repository as a source
u-boot: allow specification of custom Git repo as source
barebox: bump version
at91dataflashboot: use "config" instead of "menuconfig"
linux: add support for 3.x and -rc versions
uboot: Add 2011.06, remove 2010.03
boot/Config.in | 3 +-
boot/at91bootstrap/at91bootstrap.mk | 8 -
boot/at91dataflashboot/Config.in | 2 +-
boot/at91dataflashboot/at91dataflashboot.mk | 9 --
boot/barebox/barebox.mk | 5 +-
boot/grub/grub.mk | 9 --
boot/syslinux/syslinux.mk | 9 --
boot/u-boot/u-boot-2010.03-fix-avr32.patch | 5 -
boot/{u-boot => uboot}/Config.in | 24 +++-
boot/{u-boot/u-boot.mk => uboot/uboot.mk} | 90 +++++-------
boot/xloader/Config.in | 15 ++
boot/xloader/xloader.mk | 37 +++++
linux/Config.in | 15 ++
linux/linux.mk | 208 ++++++++++++++-------------
package/Makefile.package.in | 16 ++-
15 files changed, 248 insertions(+), 207 deletions(-)
delete mode 100644 boot/u-boot/u-boot-2010.03-fix-avr32.patch
rename boot/{u-boot => uboot}/Config.in (85%)
rename boot/{u-boot/u-boot.mk => uboot/uboot.mk} (57%)
create mode 100644 boot/xloader/Config.in
create mode 100644 boot/xloader/xloader.mkThanks,
Signature · 1 line
Thomas Petazzoni
PATCH 1/11 linux: rename LINUX26 to LINUX
--- linux/linux.mk | 110 ++++++++++++++++++++++++++++---------------------------- 1 files changed, 55 insertions(+), 55 deletions(-)
linux/linux.mk +55 -55
@@ -1,24 +1,24 @@ ############################################################################### # -# Linux kernel 2.6 target +# Linux kernel target # ############################################################################### -LINUX26_VERSION=$(call qstrip,$(BR2_LINUX_KERNEL_VERSION)) +LINUX_VERSION=$(call qstrip,$(BR2_LINUX_KERNEL_VERSION)) -# Compute LINUX26_SOURCE and LINUX26_SITE from the configuration -ifeq ($(LINUX26_VERSION),custom) -LINUX26_TARBALL:=$(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION)) -LINUX26_SITE:=$(dir $(LINUX26_TARBALL)) -LINUX26_SOURCE:=$(notdir $(LINUX26_TARBALL)) +# Compute LINUX_SOURCE and LINUX_SITE from the configuration +ifeq ($(LINUX_VERSION),custom) +LINUX_TARBALL:=$(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION)) +LINUX_SITE:=$(dir $(LINUX_TARBALL)) +LINUX_SOURCE:=$(notdir $(LINUX_TARBALL)) else -LINUX26_SOURCE:=linux-$(LINUX26_VERSION).tar.bz2 -LINUX26_SITE:=$(BR2_KERNEL_MIRROR)/linux/kernel/v2.6/ +LINUX_SOURCE:=linux-$(LINUX_VERSION).tar.bz2 +LINUX_SITE:=$(BR2_KERNEL_MIRROR)/linux/kernel/v2.6/ endif -LINUX26_DIR:=$(BUILD_DIR)/linux-$(LINUX26_VERSION) -LINUX26_PATCH=$(call qstrip,$(BR2_LINUX_KERNEL_PATCH)) +LINUX_DIR:=$(BUILD_DIR)/linux-$(LINUX_VERSION) +LINUX_PATCH=$(call qstrip,$(BR2_LINUX_KERNEL_PATCH)) -LINUX26_MAKE_FLAGS = \ +LINUX_MAKE_FLAGS = \ HOSTCC="$(HOSTCC)" \ HOSTCFLAGS="$(HOSTCFLAGS)" \ ARCH=$(KERNEL_ARCH) \
@@ -28,27 +28,27 @@ LINUX26_MAKE_FLAGS = \ # Get the real Linux version, which tells us where kernel modules are # going to be installed in the target filesystem. -LINUX26_VERSION_PROBED = $(shell $(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) --no-print-directory -s kernelrelease) +LINUX_VERSION_PROBED = $(shell $(MAKE) $(LINUX_MAKE_FLAGS) -C $(LINUX_DIR) --no-print-directory -s kernelrelease) ifeq ($(BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM),y) -LINUX26_IMAGE_NAME=$(call qstrip,$(BR2_LINUX_KERNEL_IMAGE_TARGET_NAME)) +LINUX_IMAGE_NAME=$(call qstrip,$(BR2_LINUX_KERNEL_IMAGE_TARGET_NAME)) else ifeq ($(BR2_LINUX_KERNEL_UIMAGE),y) ifeq ($(KERNEL_ARCH),blackfin) # a uImage, but with a different file name -LINUX26_IMAGE_NAME=vmImage +LINUX_IMAGE_NAME=vmImage else -LINUX26_IMAGE_NAME=uImage +LINUX_IMAGE_NAME=uImage endif -LINUX26_DEPENDENCIES+=$(MKIMAGE) +LINUX_DEPENDENCIES+=host-uboot-mkimage else ifeq ($(BR2_LINUX_KERNEL_BZIMAGE),y) -LINUX26_IMAGE_NAME=bzImage +LINUX_IMAGE_NAME=bzImage else ifeq ($(BR2_LINUX_KERNEL_ZIMAGE),y) -LINUX26_IMAGE_NAME=zImage +LINUX_IMAGE_NAME=zImage else ifeq ($(BR2_LINUX_KERNEL_VMLINUX_BIN),y) -LINUX26_IMAGE_NAME=vmlinux.bin +LINUX_IMAGE_NAME=vmlinux.bin else ifeq ($(BR2_LINUX_KERNEL_VMLINUX),y) -LINUX26_IMAGE_NAME=vmlinux +LINUX_IMAGE_NAME=vmlinux endif endif
@@ -57,44 +57,44 @@ endif # for bzImage, arch/i386 and arch/x86_64 do not exist when copying the # defconfig file. ifeq ($(KERNEL_ARCH),i386) -KERNEL_ARCH_PATH=$(LINUX26_DIR)/arch/x86 +KERNEL_ARCH_PATH=$(LINUX_DIR)/arch/x86 else ifeq ($(KERNEL_ARCH),x86_64) -KERNEL_ARCH_PATH=$(LINUX26_DIR)/arch/x86 +KERNEL_ARCH_PATH=$(LINUX_DIR)/arch/x86 else -KERNEL_ARCH_PATH=$(LINUX26_DIR)/arch/$(KERNEL_ARCH) +KERNEL_ARCH_PATH=$(LINUX_DIR)/arch/$(KERNEL_ARCH) endif ifeq ($(BR2_LINUX_KERNEL_VMLINUX),y) -LINUX26_IMAGE_PATH=$(LINUX26_DIR)/$(LINUX26_IMAGE_NAME) +LINUX_IMAGE_PATH=$(LINUX_DIR)/$(LINUX_IMAGE_NAME) else ifeq ($(KERNEL_ARCH),avr32) -LINUX26_IMAGE_PATH=$(KERNEL_ARCH_PATH)/boot/images/$(LINUX26_IMAGE_NAME) +LINUX_IMAGE_PATH=$(KERNEL_ARCH_PATH)/boot/images/$(LINUX_IMAGE_NAME) else -LINUX26_IMAGE_PATH=$(KERNEL_ARCH_PATH)/boot/$(LINUX26_IMAGE_NAME) +LINUX_IMAGE_PATH=$(KERNEL_ARCH_PATH)/boot/$(LINUX_IMAGE_NAME) endif endif # BR2_LINUX_KERNEL_VMLINUX # Download -$(LINUX26_DIR)/.stamp_downloaded: +$(LINUX_DIR)/.stamp_downloaded: @$(call MESSAGE,"Downloading kernel") - $(call DOWNLOAD,$(LINUX26_SITE),$(LINUX26_SOURCE)) - $(foreach patch,$(filter ftp://% http://%,$(LINUX26_PATCH)),\ + $(call DOWNLOAD,$(LINUX_SITE),$(LINUX_SOURCE)) + $(foreach patch,$(filter ftp://% http://%,$(LINUX_PATCH)),\ $(call DOWNLOAD,$(dir $(patch)),$(notdir $(patch)))$(sep)) mkdir -p $(@D) touch $@ # Extraction -$(LINUX26_DIR)/.stamp_extracted: $(LINUX26_DIR)/.stamp_downloaded +$(LINUX_DIR)/.stamp_extracted: $(LINUX_DIR)/.stamp_downloaded @$(call MESSAGE,"Extracting kernel") mkdir -p $(@D) - $(Q)$(INFLATE$(suffix $(LINUX26_SOURCE))) $(DL_DIR)/$(LINUX26_SOURCE) | \ + $(Q)$(INFLATE$(suffix $(LINUX_SOURCE))) $(DL_DIR)/$(LINUX_SOURCE) | \ tar -C $(@D) $(TAR_STRIP_COMPONENTS)=1 $(TAR_OPTIONS) - $(Q)touch $@ # Patch -$(LINUX26_DIR)/.stamp_patched: $(LINUX26_DIR)/.stamp_extracted +$(LINUX_DIR)/.stamp_patched: $(LINUX_DIR)/.stamp_extracted @$(call MESSAGE,"Patching kernel") - for p in $(LINUX26_PATCH) ; do \ + for p in $(LINUX_PATCH) ; do \ if echo $$p | grep -q -E "^ftp://|^http://" ; then \ toolchain/patch-kernel.sh $(@D) $(DL_DIR) `basename $$p` ; \ elif test -d $$p ; then \
@@ -107,13 +107,13 @@ $(LINUX26_DIR)/.stamp_patched: $(LINUX26_DIR)/.stamp_extracted # Configuration -$(LINUX26_DIR)/.stamp_configured: $(LINUX26_DIR)/.stamp_patched +$(LINUX_DIR)/.stamp_configured: $(LINUX_DIR)/.stamp_patched @$(call MESSAGE,"Configuring kernel") ifeq ($(BR2_LINUX_KERNEL_USE_DEFCONFIG),y) - $(TARGET_MAKE_ENV) $(MAKE1) $(LINUX26_MAKE_FLAGS) -C $(@D) $(call qstrip,$(BR2_LINUX_KERNEL_DEFCONFIG))_defconfig + $(TARGET_MAKE_ENV) $(MAKE1) $(LINUX_MAKE_FLAGS) -C $(@D) $(call qstrip,$(BR2_LINUX_KERNEL_DEFCONFIG))_defconfig else ifeq ($(BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG),y) cp $(BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE) $(KERNEL_ARCH_PATH)/configs/buildroot_defconfig - $(TARGET_MAKE_ENV) $(MAKE1) $(LINUX26_MAKE_FLAGS) -C $(@D) buildroot_defconfig + $(TARGET_MAKE_ENV) $(MAKE1) $(LINUX_MAKE_FLAGS) -C $(@D) buildroot_defconfig rm $(KERNEL_ARCH_PATH)/configs/buildroot_defconfig endif ifeq ($(BR2_ARM_EABI),y)
@@ -141,61 +141,61 @@ endif ifeq ($(BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV),y) $(call KCONFIG_SET_OPT,CONFIG_UEVENT_HELPER_PATH,\"/sbin/mdev\",$(@D)/.config) endif - $(TARGET_MAKE_ENV) $(MAKE) $(LINUX26_MAKE_FLAGS) -C $(@D) oldconfig + $(TARGET_MAKE_ENV) $(MAKE) $(LINUX_MAKE_FLAGS) -C $(@D) oldconfig $(Q)touch $@ # Compilation. We make sure the kernel gets rebuilt when the # configuration has changed. -$(LINUX26_DIR)/.stamp_compiled: $(LINUX26_DIR)/.stamp_configured $(LINUX26_DIR)/.config +$(LINUX_DIR)/.stamp_compiled: $(LINUX_DIR)/.stamp_configured $(LINUX_DIR)/.config @$(call MESSAGE,"Compiling kernel") - $(TARGET_MAKE_ENV) $(MAKE) $(LINUX26_MAKE_FLAGS) -C $(@D) $(LINUX26_IMAGE_NAME) + $(TARGET_MAKE_ENV) $(MAKE) $(LINUX_MAKE_FLAGS) -C $(@D) $(LINUX_IMAGE_NAME) @if grep -q "CONFIG_MODULES=y" $(@D)/.config; then \ - $(TARGET_MAKE_ENV) $(MAKE) $(LINUX26_MAKE_FLAGS) -C $(@D) modules ; \ + $(TARGET_MAKE_ENV) $(MAKE) $(LINUX_MAKE_FLAGS) -C $(@D) modules ; \ fi $(Q)touch $@ # Installation -$(LINUX26_DIR)/.stamp_installed: $(LINUX26_DIR)/.stamp_compiled +$(LINUX_DIR)/.stamp_installed: $(LINUX_DIR)/.stamp_compiled @$(call MESSAGE,"Installing kernel") ifeq ($(BR2_LINUX_KERNEL_INSTALL_TARGET),y) - install -m 0644 -D $(LINUX26_IMAGE_PATH) $(TARGET_DIR)/boot/$(LINUX26_IMAGE_NAME) + install -m 0644 -D $(LINUX_IMAGE_PATH) $(TARGET_DIR)/boot/$(LINUX_IMAGE_NAME) endif - cp $(LINUX26_IMAGE_PATH) $(BINARIES_DIR) + cp $(LINUX_IMAGE_PATH) $(BINARIES_DIR) # Install modules and remove symbolic links pointing to build # directories, not relevant on the target @if grep -q "CONFIG_MODULES=y" $(@D)/.config; then \ - $(TARGET_MAKE_ENV) $(MAKE1) $(LINUX26_MAKE_FLAGS) -C $(@D) \ + $(TARGET_MAKE_ENV) $(MAKE1) $(LINUX_MAKE_FLAGS) -C $(@D) \ DEPMOD="$(HOST_DIR)/usr/sbin/depmod" modules_install ; \ - rm -f $(TARGET_DIR)/lib/modules/$(LINUX26_VERSION_PROBED)/build ; \ - rm -f $(TARGET_DIR)/lib/modules/$(LINUX26_VERSION_PROBED)/source ; \ + rm -f $(TARGET_DIR)/lib/modules/$(LINUX_VERSION_PROBED)/build ; \ + rm -f $(TARGET_DIR)/lib/modules/$(LINUX_VERSION_PROBED)/source ; \ fi $(Q)touch $@ -linux linux26: host-module-init-tools $(LINUX26_DEPENDENCIES) $(LINUX26_DIR)/.stamp_installed +linux linux26: host-module-init-tools $(LINUX_DEPENDENCIES) $(LINUX_DIR)/.stamp_installed -linux-menuconfig linux-xconfig linux-gconfig linux-nconfig linux26-menuconfig linux26-xconfig linux26-gconfig linux26-nconfig: dirs $(LINUX26_DIR)/.stamp_configured - $(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) \ +linux-menuconfig linux-xconfig linux-gconfig linux-nconfig linux26-menuconfig linux26-xconfig linux26-gconfig linux26-nconfig: dirs $(LINUX_DIR)/.stamp_configured + $(MAKE) $(LINUX_MAKE_FLAGS) -C $(LINUX_DIR) \ $(subst linux-,,$(subst linux26-,,$@)) # Support for rebuilding the kernel after the initramfs file list has # been generated in $(BINARIES_DIR)/rootfs.initramfs. -$(LINUX26_DIR)/.stamp_initramfs_rebuilt: $(LINUX26_DIR)/.stamp_installed $(BINARIES_DIR)/rootfs.initramfs +$(LINUX_DIR)/.stamp_initramfs_rebuilt: $(LINUX_DIR)/.stamp_installed $(BINARIES_DIR)/rootfs.initramfs @$(call MESSAGE,"Rebuilding kernel with initramfs") # Remove the previously generated initramfs which was empty, # to make sure the kernel will actually regenerate it. $(RM) -f $(@D)/usr/initramfs_data.cpio* # Build the kernel. - $(TARGET_MAKE_ENV) $(MAKE) $(LINUX26_MAKE_FLAGS) -C $(@D) $(LINUX26_IMAGE_NAME) + $(TARGET_MAKE_ENV) $(MAKE) $(LINUX_MAKE_FLAGS) -C $(@D) $(LINUX_IMAGE_NAME) # Copy the kernel image to its final destination - cp $(LINUX26_IMAGE_PATH) $(BINARIES_DIR) + cp $(LINUX_IMAGE_PATH) $(BINARIES_DIR) $(Q)touch $@ # The initramfs building code must make sure this target gets called # after it generated the initramfs list of files. -linux-rebuild-with-initramfs linux26-rebuild-with-initramfs: $(LINUX26_DIR)/.stamp_initramfs_rebuilt +linux-rebuild-with-initramfs linux26-rebuild-with-initramfs: $(LINUX_DIR)/.stamp_initramfs_rebuilt ifeq ($(BR2_LINUX_KERNEL),y) -TARGETS+=linux26 +TARGETS+=linux endif # Checks to give errors that the user can understand
Signature · 1 line
1.7.4.1
PATCH 2/11 linux: convert to the GENTARGETS infrastructure
In reply to Thomas Petazzoni--- linux/linux.mk | 126 +++++++++++++++++++++++++++----------------------------- 1 files changed, 61 insertions(+), 65 deletions(-)
linux/linux.mk +61 -65
@@ -7,16 +7,18 @@ LINUX_VERSION=$(call qstrip,$(BR2_LINUX_KERNEL_VERSION)) # Compute LINUX_SOURCE and LINUX_SITE from the configuration ifeq ($(LINUX_VERSION),custom) -LINUX_TARBALL:=$(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION)) -LINUX_SITE:=$(dir $(LINUX_TARBALL)) -LINUX_SOURCE:=$(notdir $(LINUX_TARBALL)) +LINUX_TARBALL = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION)) +LINUX_SITE = $(dir $(LINUX_TARBALL)) +LINUX_SOURCE = $(notdir $(LINUX_TARBALL)) else -LINUX_SOURCE:=linux-$(LINUX_VERSION).tar.bz2 -LINUX_SITE:=$(BR2_KERNEL_MIRROR)/linux/kernel/v2.6/ +LINUX_SOURCE = linux-$(LINUX_VERSION).tar.bz2 +LINUX_SITE = $(BR2_KERNEL_MIRROR)/linux/kernel/v2.6/ endif -LINUX_DIR:=$(BUILD_DIR)/linux-$(LINUX_VERSION) -LINUX_PATCH=$(call qstrip,$(BR2_LINUX_KERNEL_PATCH)) +LINUX_PATCHES = $(call qstrip,$(BR2_LINUX_KERNEL_PATCH)) + +LINUX_INSTALL_IMAGES = YES +LINUX_DEPENDENCIES += host-module-init-tools LINUX_MAKE_FLAGS = \ HOSTCC="$(HOSTCC)" \
@@ -74,27 +76,17 @@ LINUX_IMAGE_PATH=$(KERNEL_ARCH_PATH)/boot/$(LINUX_IMAGE_NAME) endif endif # BR2_LINUX_KERNEL_VMLINUX -# Download -$(LINUX_DIR)/.stamp_downloaded: - @$(call MESSAGE,"Downloading kernel") - $(call DOWNLOAD,$(LINUX_SITE),$(LINUX_SOURCE)) - $(foreach patch,$(filter ftp://% http://%,$(LINUX_PATCH)),\ +define LINUX_DOWNLOAD_PATCHES + $(if $(LINUX_PATCHES), + @$(call MESSAGE,"Download additional patches")) + $(foreach patch,$(filter ftp://% http://%,$(LINUX_PATCHES)),\ $(call DOWNLOAD,$(dir $(patch)),$(notdir $(patch)))$(sep)) - mkdir -p $(@D) - touch $@ - -# Extraction -$(LINUX_DIR)/.stamp_extracted: $(LINUX_DIR)/.stamp_downloaded - @$(call MESSAGE,"Extracting kernel") - mkdir -p $(@D) - $(Q)$(INFLATE$(suffix $(LINUX_SOURCE))) $(DL_DIR)/$(LINUX_SOURCE) | \ - tar -C $(@D) $(TAR_STRIP_COMPONENTS)=1 $(TAR_OPTIONS) - - $(Q)touch $@ +endef + +LINUX_POST_DOWNLOAD_HOOKS += LINUX_DOWNLOAD_PATCHES -# Patch -$(LINUX_DIR)/.stamp_patched: $(LINUX_DIR)/.stamp_extracted - @$(call MESSAGE,"Patching kernel") - for p in $(LINUX_PATCH) ; do \ +define LINUX_APPLY_PATCHES + for p in $(LINUX_PATCHES) ; do \ if echo $$p | grep -q -E "^ftp://|^http://" ; then \ toolchain/patch-kernel.sh $(@D) $(DL_DIR) `basename $$p` ; \ elif test -d $$p ; then \
@@ -103,64 +95,66 @@ $(LINUX_DIR)/.stamp_patched: $(LINUX_DIR)/.stamp_extracted toolchain/patch-kernel.sh $(@D) `dirname $$p` `basename $$p` ; \ fi \ done - $(Q)touch $@ +endef + +LINUX_POST_PATCH_HOOKS += LINUX_APPLY_PATCHES -# Configuration -$(LINUX_DIR)/.stamp_configured: $(LINUX_DIR)/.stamp_patched - @$(call MESSAGE,"Configuring kernel") ifeq ($(BR2_LINUX_KERNEL_USE_DEFCONFIG),y) - $(TARGET_MAKE_ENV) $(MAKE1) $(LINUX_MAKE_FLAGS) -C $(@D) $(call qstrip,$(BR2_LINUX_KERNEL_DEFCONFIG))_defconfig +KERNEL_SOURCE_CONFIG = $(KERNEL_ARCH_PATH)/configs/$(call qstrip,$(BR2_LINUX_KERNEL_DEFCONFIG))_defconfig else ifeq ($(BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG),y) - cp $(BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE) $(KERNEL_ARCH_PATH)/configs/buildroot_defconfig +KERNEL_SOURCE_CONFIG = $(BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE) +endif + +define LINUX_CONFIGURE_CMDS + cp $(KERNEL_SOURCE_CONFIG) $(KERNEL_ARCH_PATH)/configs/buildroot_defconfig $(TARGET_MAKE_ENV) $(MAKE1) $(LINUX_MAKE_FLAGS) -C $(@D) buildroot_defconfig rm $(KERNEL_ARCH_PATH)/configs/buildroot_defconfig -endif -ifeq ($(BR2_ARM_EABI),y) - $(call KCONFIG_ENABLE_OPT,CONFIG_AEABI,$(@D)/.config) -else - $(call KCONFIG_DISABLE_OPT,CONFIG_AEABI,$(@D)/.config) -endif -ifeq ($(BR2_TARGET_ROOTFS_INITRAMFS),y) + $(if $(BR2_ARM_EABI), + $(call KCONFIG_ENABLE_OPT,CONFIG_AEABI,$(@D)/.config), + $(call KCONFIG_DISABLE_OPT,CONFIG_AEABI,$(@D)/.config)) # As the kernel gets compiled before root filesystems are # built, we create a fake initramfs file list. It'll be # replaced later by the real list, and the kernel will be # rebuilt using the linux26-rebuild-with-initramfs target. - touch $(BINARIES_DIR)/rootfs.initramfs - $(call KCONFIG_ENABLE_OPT,CONFIG_BLK_DEV_INITRD,$(@D)/.config) - $(call KCONFIG_SET_OPT,CONFIG_INITRAMFS_SOURCE,\"$(BINARIES_DIR)/rootfs.initramfs\",$(@D)/.config) - $(call KCONFIG_SET_OPT,CONFIG_INITRAMFS_ROOT_UID,0,$(@D)/.config) - $(call KCONFIG_SET_OPT,CONFIG_INITRAMFS_ROOT_GID,0,$(@D)/.config) - $(call KCONFIG_DISABLE_OPT,CONFIG_INITRAMFS_COMPRESSION_NONE,$(@D)/.config) - $(call KCONFIG_ENABLE_OPT,CONFIG_INITRAMFS_COMPRESSION_GZIP,$(@D)/.config) -endif -ifneq ($(BR2_ROOTFS_DEVICE_CREATION_STATIC),y) - $(call KCONFIG_ENABLE_OPT,CONFIG_DEVTMPFS,$(@D)/.config) - $(call KCONFIG_ENABLE_OPT,CONFIG_DEVTMPFS_MOUNT,$(@D)/.config) -endif -ifeq ($(BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV),y) - $(call KCONFIG_SET_OPT,CONFIG_UEVENT_HELPER_PATH,\"/sbin/mdev\",$(@D)/.config) -endif - $(TARGET_MAKE_ENV) $(MAKE) $(LINUX_MAKE_FLAGS) -C $(@D) oldconfig - $(Q)touch $@ + $(if $(BR2_TARGET_ROOTFS_INITRAMFS), + touch $(BINARIES_DIR)/rootfs.initramfs + $(call KCONFIG_ENABLE_OPT,CONFIG_BLK_DEV_INITRD,$(@D)/.config) + $(call KCONFIG_SET_OPT,CONFIG_INITRAMFS_SOURCE,\"$(BINARIES_DIR)/rootfs.initramfs\",$(@D)/.config) + $(call KCONFIG_SET_OPT,CONFIG_INITRAMFS_ROOT_UID,0,$(@D)/.config) + $(call KCONFIG_SET_OPT,CONFIG_INITRAMFS_ROOT_GID,0,$(@D)/.config) + $(call KCONFIG_DISABLE_OPT,CONFIG_INITRAMFS_COMPRESSION_NONE,$(@D)/.config) + $(call KCONFIG_ENABLE_OPT,CONFIG_INITRAMFS_COMPRESSION_GZIP,$(@D)/.config)) + $(if $(BR2_ROOTFS_DEVICE_CREATION_STATIC),, + $(call KCONFIG_ENABLE_OPT,CONFIG_DEVTMPFS,$(@D)/.config) + $(call KCONFIG_ENABLE_OPT,CONFIG_DEVTMPFS_MOUNT,$(@D)/.config)) + $(if $(BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV), + $(call KCONFIG_SET_OPT,CONFIG_UEVENT_HELPER_PATH,\"/sbin/mdev\",$(@D)/.config)) + yes '' | $(TARGET_MAKE_ENV) $(MAKE1) $(LINUX_MAKE_FLAGS) -C $(@D) oldconfig +endef # Compilation. We make sure the kernel gets rebuilt when the # configuration has changed. -$(LINUX_DIR)/.stamp_compiled: $(LINUX_DIR)/.stamp_configured $(LINUX_DIR)/.config - @$(call MESSAGE,"Compiling kernel") +define LINUX_BUILD_CMDS $(TARGET_MAKE_ENV) $(MAKE) $(LINUX_MAKE_FLAGS) -C $(@D) $(LINUX_IMAGE_NAME) @if grep -q "CONFIG_MODULES=y" $(@D)/.config; then \ $(TARGET_MAKE_ENV) $(MAKE) $(LINUX_MAKE_FLAGS) -C $(@D) modules ; \ fi - $(Q)touch $@ +endef + -# Installation -$(LINUX_DIR)/.stamp_installed: $(LINUX_DIR)/.stamp_compiled - @$(call MESSAGE,"Installing kernel") ifeq ($(BR2_LINUX_KERNEL_INSTALL_TARGET),y) +define LINUX_INSTALL_KERNEL_IMAGE_TO_TARGET install -m 0644 -D $(LINUX_IMAGE_PATH) $(TARGET_DIR)/boot/$(LINUX_IMAGE_NAME) +endef endif + +define LINUX_INSTALL_IMAGES_CMDS cp $(LINUX_IMAGE_PATH) $(BINARIES_DIR) +endef + +define LINUX_INSTALL_TARGET_CMDS + $(LINUX_INSTALL_KERNEL_IMAGE_TO_TARGET) # Install modules and remove symbolic links pointing to build # directories, not relevant on the target @if grep -q "CONFIG_MODULES=y" $(@D)/.config; then \
@@ -169,17 +163,18 @@ endif rm -f $(TARGET_DIR)/lib/modules/$(LINUX_VERSION_PROBED)/build ; \ rm -f $(TARGET_DIR)/lib/modules/$(LINUX_VERSION_PROBED)/source ; \ fi - $(Q)touch $@ +endef -linux linux26: host-module-init-tools $(LINUX_DEPENDENCIES) $(LINUX_DIR)/.stamp_installed +$(eval $(call GENTARGETS,,linux)) linux-menuconfig linux-xconfig linux-gconfig linux-nconfig linux26-menuconfig linux26-xconfig linux26-gconfig linux26-nconfig: dirs $(LINUX_DIR)/.stamp_configured $(MAKE) $(LINUX_MAKE_FLAGS) -C $(LINUX_DIR) \ $(subst linux-,,$(subst linux26-,,$@)) + rm -f $(LINUX_DIR)/.stamp_{built,target_installed,images_installed} # Support for rebuilding the kernel after the initramfs file list has # been generated in $(BINARIES_DIR)/rootfs.initramfs. -$(LINUX_DIR)/.stamp_initramfs_rebuilt: $(LINUX_DIR)/.stamp_installed $(BINARIES_DIR)/rootfs.initramfs +$(LINUX_DIR)/.stamp_initramfs_rebuilt: $(LINUX_DIR)/.stamp_target_installed $(LINUX_DIR)/.stamp_images_installed $(BINARIES_DIR)/rootfs.initramfs @$(call MESSAGE,"Rebuilding kernel with initramfs") # Remove the previously generated initramfs which was empty, # to make sure the kernel will actually regenerate it.
@@ -194,6 +189,7 @@ $(LINUX_DIR)/.stamp_initramfs_rebuilt: $(LINUX_DIR)/.stamp_installed $(BINARIES_ # after it generated the initramfs list of files. linux-rebuild-with-initramfs linux26-rebuild-with-initramfs: $(LINUX_DIR)/.stamp_initramfs_rebuilt + ifeq ($(BR2_LINUX_KERNEL),y) TARGETS+=linux endif
Signature · 1 line
1.7.4.1
PATCH 3/11 u-boot: rename to uboot
In reply to Thomas PetazzoniThis will allow to match the currently Config.in option BR2_TARGET_UBOOT, in order to make it easy to integrate U-Boot into the package infrastructure.
---
boot/Config.in | 2 +-
boot/{u-boot => uboot}/Config.in | 0
.../uboot-2010.03-fix-avr32.patch} | 0
boot/{u-boot/u-boot.mk => uboot/uboot.mk} | 78 ++++++++++----------
4 files changed, 40 insertions(+), 40 deletions(-)
rename boot/{u-boot => uboot}/Config.in (100%)
rename boot/{u-boot/u-boot-2010.03-fix-avr32.patch => uboot/uboot-2010.03-fix-avr32.patch} (100%)
rename boot/{u-boot/u-boot.mk => uboot/uboot.mk} (62%)boot/Config.in +1 -1
@@ -3,7 +3,7 @@ menu "Bootloaders" source "boot/barebox/Config.in" source "boot/grub/Config.in" source "boot/syslinux/Config.in" -source "boot/u-boot/Config.in" +source "boot/uboot/Config.in" source "boot/at91bootstrap/Config.in" source "boot/at91dataflashboot/Config.in"
boot/uboot/Config.in renamed from boot/u-boot/Config.in +0 -0
boot/uboot/uboot-2010.03-fix-avr32.patch renamed from boot/u-boot/u-boot-2010.03-fix-avr32.patch +0 -0
boot/uboot/uboot.mk renamed from boot/u-boot/u-boot.mk +39 -39
141 lines not on this page · raw message
Signature · 1 line
1.7.4.1
PATCH 4/11 Improve TARGETS handling for bootloaders and kernel
In reply to Thomas PetazzoniAs the kernel and bootloaders do not use the normal BR2_PACKAGE_* Kconfig options, their target name was not automatically added to the global TARGETS variable. Each bootloader .mk and the linux.mk had to add their own target manually to TARGETS, and the package infrastructure was making tests on non-existing Kconfig variables.
This commit improves the package infrastructure so that it looks at BR2_PACKAGE_<pkg> for packages, BR2_TARGET_<pkg> for bootloaders and at the special BR2_LINUX_KERNEL for the linux package.
This allows to simplify a little bit the bootloaders and linux .mk files.
--- boot/at91bootstrap/at91bootstrap.mk | 8 -------- boot/at91dataflashboot/at91dataflashboot.mk | 9 --------- boot/barebox/barebox.mk | 3 --- boot/grub/grub.mk | 9 --------- boot/syslinux/syslinux.mk | 9 --------- boot/uboot/uboot.mk | 8 -------- linux/linux.mk | 5 ----- package/Makefile.package.in | 16 +++++++++++++--- 8 files changed, 13 insertions(+), 54 deletions(-)
boot/at91bootstrap/at91bootstrap.mk +0 -8
@@ -31,19 +31,11 @@ endef $(eval $(call GENTARGETS,boot,at91bootstrap)) -############################################################# -# -# Toplevel Makefile options -# -############################################################# ifeq ($(BR2_TARGET_AT91BOOTSTRAP),y) -TARGETS+=at91bootstrap - # we NEED a board name unless we're at make source ifeq ($(filter source,$(MAKECMDGOALS)),) ifeq ($(AT91BOOTSTRAP_BOARD),) $(error No AT91Bootstrap board name set. Check your BR2_TARGET_AT91BOOTSTRAP_BOARD setting) endif endif - endif
boot/at91dataflashboot/at91dataflashboot.mk +0 -9
@@ -20,12 +20,3 @@ define AT91DATAFLASHBOOT_INSTALL_IMAGES_CMDS endef $(eval $(call GENTARGETS,boot,at91dataflashboot)) - -############################################################# -# -# Toplevel Makefile options -# -############################################################# -ifeq ($(BR2_TARGET_AT91DATAFLASHBOOT),y) -TARGETS+=at91dataflashboot -endif
boot/barebox/barebox.mk +0 -3
@@ -54,13 +54,10 @@ endif $(eval $(call GENTARGETS,boot,barebox)) ifeq ($(BR2_TARGET_BAREBOX),y) -TARGETS+=barebox - # we NEED a board defconfig file unless we're at make source ifeq ($(filter source,$(MAKECMDGOALS)),) ifeq ($(BAREBOX_BOARD_DEFCONFIG),) $(error No Barebox defconfig file. Check your BR2_TARGET_BAREBOX_BOARD_DEFCONFIG setting) endif endif - endif
boot/grub/grub.mk +0 -9
@@ -83,12 +83,3 @@ define GRUB_UNINSTALL_TARGET_CMDS endef $(eval $(call AUTOTARGETS,boot,grub)) - -############################################################# -# -# Toplevel Makefile options -# -############################################################# -ifeq ($(BR2_TARGET_GRUB),y) -TARGETS+=grub -endif
boot/syslinux/syslinux.mk +0 -9
@@ -27,12 +27,3 @@ define SYSLINUX_INSTALL_IMAGES_CMDS endef $(eval $(call GENTARGETS,boot,syslinux)) - -############################################################# -# -# Toplevel Makefile options -# -############################################################# -ifeq ($(BR2_TARGET_SYSLINUX),y) -TARGETS+=syslinux -endif
boot/uboot/uboot.mk +0 -8
@@ -111,19 +111,11 @@ endef $(eval $(call GENTARGETS,boot,uboot)) -############################################################# -# -# Toplevel Makefile options -# -############################################################# ifeq ($(BR2_TARGET_UBOOT),y) -TARGETS+=u-boot - # we NEED a board name unless we're at make source ifeq ($(filter source,$(MAKECMDGOALS)),) ifeq ($(UBOOT_BOARD_NAME),) $(error NO U-Boot board name set. Check your BR2_TARGET_UBOOT_BOARDNAME setting) endif endif - endif
linux/linux.mk +0 -5
@@ -189,11 +189,6 @@ $(LINUX_DIR)/.stamp_initramfs_rebuilt: $(LINUX_DIR)/.stamp_target_installed $(LI # after it generated the initramfs list of files. linux-rebuild-with-initramfs linux26-rebuild-with-initramfs: $(LINUX_DIR)/.stamp_initramfs_rebuilt - -ifeq ($(BR2_LINUX_KERNEL),y) -TARGETS+=linux -endif - # Checks to give errors that the user can understand ifeq ($(filter source,$(MAKECMDGOALS)),) ifeq ($(BR2_LINUX_KERNEL_USE_DEFCONFIG),y)
package/Makefile.package.in +13 -3
@@ -522,10 +522,20 @@ $$($(2)_TARGET_UNINSTALL): PKG=$(2) $$($(2)_TARGET_CLEAN): PKG=$(2) $$($(2)_TARGET_DIRCLEAN): PKG=$(2) +# Compute the name of the Kconfig option that correspond to the +# package being enabled. We handle three cases: the special Linux +# kernel case, the bootloaders case, and the normal packages case. +ifeq ($(1),linux) +$(2)_KCONFIG_VAR = BR2_LINUX_KERNEL +else ifeq ($(4),boot) +$(2)_KCONFIG_VAR = BR2_TARGET_$(2) +else +$(2)_KCONFIG_VAR = BR2_PACKAGE_$(2) +endif + # add package to the general list of targets if requested by the buildroot # configuration - -ifeq ($$(BR2_PACKAGE_$(2)),y) +ifeq ($$($$($(2)_KCONFIG_VAR)),y) TARGETS += $(1)
@@ -537,7 +547,7 @@ else ifeq ($$($(2)_SITE_METHOD),bzr) DL_TOOLS_DEPENDENCIES += bzr endif # SITE_METHOD -endif # BR2_PACKAGE_$(2) +endif # $(2)_KCONFIG_VAR endef # GENTARGETS_INNER ################################################################################
Signature · 1 line
1.7.4.1
PATCH 5/11 linux: allow specification of a custom Git repository as a source
In reply to Thomas Petazzoni--- linux/Config.in | 15 +++++++++++++++ linux/linux.mk | 3 +++ 2 files changed, 18 insertions(+), 0 deletions(-)
linux/Config.in +15 -0
@@ -47,6 +47,12 @@ config BR2_LINUX_KERNEL_CUSTOM_TARBALL This option allows to specify the http or ftp location of a specific kernel source tarball +config BR2_LINUX_KERNEL_CUSTOM_GIT + bool "Custom Git tree" + help + This option allows Buildroot to get the Linux kernel source + code from a Git repository. + endchoice config BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE
@@ -58,12 +64,21 @@ config BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION string "URL of custom kernel tarball" depends on BR2_LINUX_KERNEL_CUSTOM_TARBALL +config BR2_LINUX_KERNEL_CUSTOM_GIT_REPO_URL + string "URL of custom Git repository" + depends on BR2_LINUX_KERNEL_CUSTOM_GIT + +config BR2_LINUX_KERNEL_CUSTOM_GIT_VERSION + string "Custom Git version" + depends on BR2_LINUX_KERNEL_CUSTOM_GIT + config BR2_LINUX_KERNEL_VERSION string default "2.6.39.3" if BR2_LINUX_KERNEL_2_6_39 default BR2_DEFAULT_KERNEL_HEADERS if BR2_LINUX_KERNEL_SAME_AS_HEADERS default BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE if BR2_LINUX_KERNEL_CUSTOM_VERSION default "custom" if BR2_LINUX_KERNEL_CUSTOM_TARBALL + default $BR2_LINUX_KERNEL_CUSTOM_GIT_VERSION if BR2_LINUX_KERNEL_CUSTOM_GIT # # Patch selection
linux/linux.mk +3 -0
@@ -10,6 +10,9 @@ ifeq ($(LINUX_VERSION),custom) LINUX_TARBALL = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION)) LINUX_SITE = $(dir $(LINUX_TARBALL)) LINUX_SOURCE = $(notdir $(LINUX_TARBALL)) +else ifeq ($(BR2_LINUX_KERNEL_CUSTOM_GIT),y) +LINUX_SITE = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_GIT_REPO_URL)) +LINUX_SITE_METHOD = git else LINUX_SOURCE = linux-$(LINUX_VERSION).tar.bz2 LINUX_SITE = $(BR2_KERNEL_MIRROR)/linux/kernel/v2.6/
Signature · 1 line
1.7.4.1
PATCH 6/11 u-boot: allow specification of custom Git repo as source
In reply to Thomas Petazzoni--- boot/uboot/Config.in | 14 ++++++++++++++ boot/uboot/uboot.mk | 3 +++ 2 files changed, 17 insertions(+), 0 deletions(-)
boot/uboot/Config.in +14 -0
@@ -34,6 +34,9 @@ config BR2_TARGET_UBOOT_2010_03 config BR2_TARGET_UBOOT_CUSTOM_TARBALL bool "Custom tarball" +config BR2_TARGET_UBOOT_CUSTOM_GIT + bool "Custom Git repository" + endchoice if BR2_TARGET_UBOOT_CUSTOM_TARBALL
@@ -51,6 +54,7 @@ config BR2_TARGET_UBOOT_VERSION default "2010.06" if BR2_TARGET_UBOOT_2010_06 default "2010.03" if BR2_TARGET_UBOOT_2010_03 default "custom" if BR2_TARGET_UBOOT_CUSTOM_TARBALL + default $BR2_TARGET_UBOOT_CUSTOM_GIT_VERSION if BR2_TARGET_UBOOT_CUSTOM_GIT config BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR string "custom patch dir"
@@ -61,6 +65,16 @@ config BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR Most users may leave this empty +if BR2_TARGET_UBOOT_CUSTOM_GIT + +config BR2_TARGET_UBOOT_CUSTOM_GIT_REPO_URL + string "URL of custom Git repository" + +config BR2_TARGET_UBOOT_CUSTOM_GIT_VERSION + string "Custom Git version" + +endif + choice prompt "U-Boot binary format"
boot/uboot/uboot.mk +3 -0
@@ -13,6 +13,9 @@ ifeq ($(UBOOT_VERSION),custom) UBOOT_TARBALL = $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION)) UBOOT_SITE = $(dir $(UBOOT_TARBALL)) UBOOT_SOURCE = $(notdir $(UBOOT_TARBALL)) +else ifeq ($(BR2_TARGET_UBOOT_CUSTOM_GIT),y) +UBOOT_SITE = $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_GIT_REPO_URL)) +UBOOT_SITE_METHOD = git else # Handle stable official U-Boot versions UBOOT_SITE = ftp://ftp.denx.de/pub/u-boot
Signature · 1 line
1.7.4.1
PATCH 7/11 Add x-loader bootloader
In reply to Thomas PetazzoniFrom: Philippe Reynes <[email protected]>
merge xloader
--- boot/Config.in | 1 + boot/xloader/Config.in | 15 +++++++++++++++ boot/xloader/xloader.mk | 37 +++++++++++++++++++++++++++++++++++++ 3 files changed, 53 insertions(+), 0 deletions(-) create mode 100644 boot/xloader/Config.in create mode 100644 boot/xloader/xloader.mk
boot/Config.in +1 -0
@@ -6,6 +6,7 @@ source "boot/syslinux/Config.in" source "boot/uboot/Config.in" source "boot/at91bootstrap/Config.in" source "boot/at91dataflashboot/Config.in" +source "boot/xloader/Config.in" endmenu
boot/xloader/Config.in new file +15 -0
@@ -0,0 +1,15 @@ +menuconfig BR2_TARGET_XLOADER + bool "X-loader" + depends on BR2_cortex_a8 || BR2_cortex_a9 + help + The x-loader bootloader. It is mainly used on OMAP-based + platforms. + +if BR2_TARGET_XLOADER +config BR2_TARGET_XLOADER_BOARDNAME + string "x-loader board name" + help + One of x-loader supported boards to be built. + This will be suffixed with _config to meet x-loader + standard naming. +endif
boot/xloader/xloader.mk new file +37 -0
@@ -0,0 +1,37 @@ +############################################################# +# +# x-loader +# +############################################################# +XLOADER_VERSION = 6f3a26101303051e0f91b6213735b68ce804e94e +XLOADER_SITE = git://gitorious.org/x-loader/x-loader.git +XLOADER_BOARD_NAME = $(call qstrip,$(BR2_TARGET_XLOADER_BOARDNAME)) + +XLOADER_INSTALL_IMAGES = YES + +define XLOADER_BUILD_CMDS + $(MAKE) CROSS_COMPILE="$(TARGET_CROSS)" -C $(@D) $(XLOADER_BOARD_NAME)_config + $(MAKE) CROSS_COMPILE="$(TARGET_CROSS)" -C $(@D) all + $(MAKE) CROSS_COMPILE="$(TARGET_CROSS)" -C $(@D) ift +endef + +define XLOADER_INSTALL_IMAGES_CMDS + $(INSTALL) -D -m 0755 $(@D)/MLO $(BINARIES_DIR)/ +endef + +$(eval $(call GENTARGETS,boot,xloader)) + +############################################################# +# +# Toplevel Makefile options +# +############################################################# +ifeq ($(BR2_TARGET_XLOADER),y) +# we NEED a board name unless we're at make source +ifeq ($(filter source,$(MAKECMDGOALS)),) +ifeq ($(XLOADER_BOARD_NAME),) +$(error NO x-loader board name set. Check your BR2_BOOT_XLOADER_BOARDNAME setting) +endif +endif + +endif
Signature · 1 line
1.7.4.1
PATCH 8/11 barebox: bump version
In reply to Thomas Petazzoni--- boot/barebox/barebox.mk | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
boot/barebox/barebox.mk +1 -1
@@ -4,7 +4,7 @@ # ############################################################# -BAREBOX_VERSION = 2011.05.0 +BAREBOX_VERSION = 2011.06.0 BAREBOX_SOURCE = barebox-$(BAREBOX_VERSION).tar.bz2 BAREBOX_SITE = http://www.barebox.org/download/
Signature · 1 line
1.7.4.1
PATCH 9/11 at91dataflashboot: use "config" instead of "menuconfig"
In reply to Thomas PetazzoniSince at91dataflashboot has no suboption, using "menuconfig" is useless and confusing, as it creates an empty submenu in the configuration interface.
--- boot/at91dataflashboot/Config.in | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
boot/at91dataflashboot/Config.in +1 -1
@@ -1,3 +1,3 @@ -menuconfig BR2_TARGET_AT91DATAFLASHBOOT +config BR2_TARGET_AT91DATAFLASHBOOT depends on BR2_arm bool "AT91 DataFlashBoot"
Signature · 1 line
1.7.4.1
PATCH 10/11 linux: add support for 3.x and -rc versions
In reply to Thomas PetazzoniThe assumption that all kernels are in
http://www.kernel.org/pub/linux/kernel/v2.6/ is no longer true:
versions 3.x are in separate directories.
We now compute the directory name from the major and minor versions of the version provided by the user. This assumes that the 3.1 version will be in a /v3.1/ directory, which we don't know yet because the 3.1 cycle hasn't started yet.
At the same time, we add support for the official -rcX versions.
Patch tested by compiling 3.0-rc6, which Buildroot has successfully downloaded and built.
--- linux/linux.mk | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-)
linux/linux.mk +9 -1
@@ -15,7 +15,15 @@ LINUX_SITE = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_GIT_REPO_URL)) LINUX_SITE_METHOD = git else LINUX_SOURCE = linux-$(LINUX_VERSION).tar.bz2 -LINUX_SITE = $(BR2_KERNEL_MIRROR)/linux/kernel/v2.6/ +# In X.Y.Z, get X and Y. We replace dots and dashes by spaces in order +# to use the $(word) function. We support versions such as 3.1, +# 2.6.32, 2.6.32-rc1, 3.0-rc6, etc. +LINUX_VERSION_MAJOR = $(word 1,$(subst ., ,$(subst -, ,$(LINUX_VERSION)))) +LINUX_VERSION_MINOR = $(word 2,$(subst ., ,$(subst -, ,$(LINUX_VERSION)))) +LINUX_SITE = $(BR2_KERNEL_MIRROR)/linux/kernel/v$(LINUX_VERSION_MAJOR).$(LINUX_VERSION_MINOR)/ +ifneq ($(findstring -rc,$(LINUX_VERSION)),) +LINUX_SITE = $(LINUX_SITE)testing/ +endif # -rc endif LINUX_PATCHES = $(call qstrip,$(BR2_LINUX_KERNEL_PATCH))
Signature · 1 line
1.7.4.1
PATCH 11/11 uboot: Add 2011.06, remove 2010.03
In reply to Thomas Petazzoni--- boot/uboot/Config.in | 10 +++++----- boot/uboot/uboot-2010.03-fix-avr32.patch | 5 ----- boot/uboot/uboot.mk | 5 ----- 3 files changed, 5 insertions(+), 15 deletions(-) delete mode 100644 boot/uboot/uboot-2010.03-fix-avr32.patch
boot/uboot/Config.in +5 -5
@@ -12,10 +12,13 @@ config BR2_TARGET_UBOOT_BOARDNAME choice prompt "U-Boot Version" - default BR2_TARGET_UBOOT_2011_03 + default BR2_TARGET_UBOOT_2011_06 help Select the specific U-Boot version you want to use +config BR2_TARGET_UBOOT_2011_06 + bool "2011.06" + config BR2_TARGET_UBOOT_2011_03 bool "2011.03"
@@ -28,9 +31,6 @@ config BR2_TARGET_UBOOT_2010_09 config BR2_TARGET_UBOOT_2010_06 bool "2010.06" -config BR2_TARGET_UBOOT_2010_03 - bool "2010.03" - config BR2_TARGET_UBOOT_CUSTOM_TARBALL bool "Custom tarball"
@@ -48,11 +48,11 @@ endif config BR2_TARGET_UBOOT_VERSION string + default "2011.06" if BR2_TARGET_UBOOT_2011_06 default "2011.03" if BR2_TARGET_UBOOT_2011_03 default "2010.12" if BR2_TARGET_UBOOT_2010_12 default "2010.09" if BR2_TARGET_UBOOT_2010_09 default "2010.06" if BR2_TARGET_UBOOT_2010_06 - default "2010.03" if BR2_TARGET_UBOOT_2010_03 default "custom" if BR2_TARGET_UBOOT_CUSTOM_TARBALL default $BR2_TARGET_UBOOT_CUSTOM_GIT_VERSION if BR2_TARGET_UBOOT_CUSTOM_GIT
boot/uboot/uboot-2010.03-fix-avr32.patch deleted +0 -5
@@ -1,5 +0,0 @@ -diff -Naur u-boot-2010.03-orig/include/asm-avr32/unaligned.h u-boot-2010.03/include/asm-avr32/unaligned.h ---- u-boot-2010.03-orig/include/asm-avr32/unaligned.h 1969-12-31 21:00:00.000000000 -0300 -+++ u-boot-2010.03/include/asm-avr32/unaligned.h 2010-06-22 23:09:49.000000000 -0300 -@@ -0,0 +1 @@ -+#include <asm-generic/unaligned.h>
boot/uboot/uboot.mk +0 -5
@@ -33,11 +33,6 @@ endif UBOOT_ARCH=$(KERNEL_ARCH) -# u-boot in the past used arch=ppc for powerpc -ifneq ($(findstring x2010.03,x$(UBOOT_VERSION)),) -UBOOT_ARCH=$(KERNEL_ARCH:powerpc=ppc) -endif - UBOOT_CONFIGURE_OPTS += CONFIG_NOSOFTFLOAT=1 UBOOT_MAKE_OPTS += \ CROSS_COMPILE="$(CCACHE) $(TARGET_CROSS)" \
Signature · 1 line
1.7.4.1
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
Thomas> The following changes since commit bd76bc5f80b963570e8eda92efc961e683264402:
Thomas> CHANGES: update with recent changes (2011-07-11 07:44:24 +0200)
Thomas> are available in the git repository at:
Thomas> http://free-electrons.com/~thomas/buildroot.git for-2011.08/bootloaders
Committed, thanks!
Signature · 1 line
Bye, Peter Korsgaard
Le Mon, 11 Jul 2011 23:45:01 +0200,
Peter Korsgaard <[email protected]> a ?crit :
Quoted 7 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
"Thomas" == Thomas Petazzoni
<[email protected]> writes:Thomas> The following changes since commit
Thomas>bd76bc5f80b963570e8eda92efc961e683264402: CHANGES: update Thomas> with recent changes (2011-07-11 07:44:24 +0200)
Quoted 5 lines
Thomas> are available in the git repository at:
Thomas> http://free-electrons.com/~thomas/buildroot.git
Thomas> for-2011.08/bootloadersCommitted, thanks!
Thanks a lot for reviewing all those patches, giving feedback, waiting for the new posting, and so on.
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
Thomas> Thanks a lot for reviewing all those patches, giving feedback, waiting Thomas> for the new posting, and so on.
And thanks to you for being persistent ;)
Signature · 1 line
Bye, Peter Korsgaard