diff options
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/Config.in | 33 | ||||
-rw-r--r-- | target/linux/Config.in.advanced | 463 | ||||
-rw-r--r-- | target/linux/Config.in.versions | 62 | ||||
-rw-r--r-- | target/linux/Makefile.in | 250 | ||||
-rw-r--r-- | target/linux/Makefile.in.advanced | 532 |
5 files changed, 0 insertions, 1340 deletions
diff --git a/target/linux/Config.in b/target/linux/Config.in deleted file mode 100644 index c79fca2dd..000000000 --- a/target/linux/Config.in +++ /dev/null @@ -1,33 +0,0 @@ -#comment "Linux kernel options" - -if BR2_KERNEL_LINUX -config BR2_PACKAGE_LINUX_KCONFIG - string ".config file" - depends on BR2_PACKAGE_LINUX - default "" - help - kernel's .config to use to build a kernel for the target. - - If the above setting is empty, you can change the default - board-imposed value by passing LINUX26_KCONFIG=<path> to - make. - -config BR2_PACKAGE_LINUX_FORMAT - string "kernel binary format" - depends on BR2_PACKAGE_LINUX - default "" - help - kernel binary format. - Popular values include: - - bzImage - - zImage - and other, architecture dependant formats. - - Note that the default format is supposed to be set by your - board-description, if any. - i386 and compatible default to bzImage if nothing was given - above. - If the above setting is empty, you can change the default - board-imposed value by passing LINUX26_FORMAT=<string> to - make. -endif diff --git a/target/linux/Config.in.advanced b/target/linux/Config.in.advanced deleted file mode 100644 index 645ed2e3a..000000000 --- a/target/linux/Config.in.advanced +++ /dev/null @@ -1,463 +0,0 @@ -if BR2_KERNEL_LINUX_ADVANCED -# --- "Linux kernel options" -# This file exports the following symbols for use by Makefile's -# -# BR2_PACKAGE_LINUX -# -# BR2_KERNEL_SITE -# BR2_DOWNLOAD_LINUX26_VERSION -# BR2_LINUX26_VERSION -# -# BR2_KERNEL_PATCH_SITE -# BR2_KERNEL_PATCH -# -# BR2_LINUX26_CUSTOM -# BR2_CUSTOM_LINUX26_PATCH_SITE -# BR2_CUSTOM_LINUX26_PATCH -# -# BR2_LINUX_BSP_PATCH -# -# BR2_PACKAGE_LINUX_USE_KCONFIG -# BR2_PACKAGE_LINUX_USE_DEFCONFIG -# BR2_PACKAGE_LINUX_USE_XCONFIG -# BR2_PACKAGE_LINUX_KCONFIG -# -# BR2_PACKAGE_LINUX_FORMAT -# -# BR2_LINUX_COPYTO_ROOTFS -# BR2_LINUX_COPYTO_TFTPBOOT -# BR2_LINUX_COPYTO -# - -source "target/linux/Config.in.versions" - -config BR2_KERNEL_PATCH_LEVEL - string - default $(BR2_KERNEL_LATEST_2_6_33) if BR2_LINUX_2_6_33 && BR2_KERNEL_ADD_LATEST_MINORPATCH - default $(BR2_KERNEL_LATEST_2_6_32) if BR2_LINUX_2_6_32 && BR2_KERNEL_ADD_LATEST_MINORPATCH - default $(BR2_KERNEL_LATEST_2_6_31) if BR2_LINUX_2_6_31 && BR2_KERNEL_ADD_LATEST_MINORPATCH - default $(BR2_KERNEL_LATEST_2_6_30) if BR2_LINUX_2_6_30 && BR2_KERNEL_ADD_LATEST_MINORPATCH - default $(BR2_KERNEL_LATEST_2_6_29) if BR2_LINUX_2_6_29 && BR2_KERNEL_ADD_LATEST_MINORPATCH - default $(BR2_KERNEL_LATEST_2_6_28) if BR2_LINUX_2_6_28 && BR2_KERNEL_ADD_LATEST_MINORPATCH - default $(BR2_KERNEL_LATEST_2_6_27) if BR2_LINUX_2_6_27 && BR2_KERNEL_ADD_LATEST_MINORPATCH - default "$(BR2_KERNEL_MINORLEVEL)" if BR2_KERNEL_ADD_MINORPATCH - -config BR2_KERNEL_NEXT_VERSION - string - default "2.6.34" if BR2_LINUX_2_6_33 - default "2.6.33" if BR2_LINUX_2_6_32 - default "2.6.32" if BR2_LINUX_2_6_31 - default "2.6.31" if BR2_LINUX_2_6_30 - default "2.6.30" if BR2_LINUX_2_6_29 - default "2.6.29" if BR2_LINUX_2_6_28 - default "2.6.28" if BR2_LINUX_2_6_27 - -config BR2_KERNEL_THIS_VERSION - string - default "2.6.33" if BR2_LINUX_2_6_33 - default "2.6.32" if BR2_LINUX_2_6_32 - default "2.6.31" if BR2_LINUX_2_6_31 - default "2.6.30" if BR2_LINUX_2_6_30 - default "2.6.29" if BR2_LINUX_2_6_29 - default "2.6.28" if BR2_LINUX_2_6_28 - default "2.6.27" if BR2_LINUX_2_6_27 - -config BR2_KERNEL_SITE - string - default "http://ftp.kernel.org/pub/linux/kernel/v2.6" - -config BR2_KERNEL_PATCH_SITE - string - default "$(BR2_KERNEL_SITE)" if BR2_KERNEL_ADD_LATEST_MINORPATCH - default "$(BR2_KERNEL_SITE)" if BR2_KERNEL_ADD_MINORPATCH - default "$(BR2_KERNEL_SITE)/testing" if BR2_KERNEL_ADD_LATEST_RC_PATCH - default "$(BR2_KERNEL_SITE)/testing" if BR2_KERNEL_ADD_RC_PATCH - default "$(BR2_KERNEL_SITE)/snapshots" if BR2_KERNEL_ADD_LATEST_SNAPSHOT - default "$(BR2_KERNEL_SITE)/snapshots" if BR2_KERNEL_ADD_SNAPSHOT - default $(BR2_CUSTOM_LINUX26_PATCH_SITE) if BR2_LINUX26_CUSTOM - -config BR2_LINUX26_RC_VERSION - string - default "$(BR2_KERNEL_NEXT_VERSION)-rc$(BR2_KERNEL_RC_LEVEL)" if BR2_KERNEL_ADD_RC_PATCH - -config BR2_LINUX26_SNAPSHOT_VERSION - string - default "$(BR2_KERNEL_THIS_VERSION)-git$(BR2_KERNEL_GIT_LEVEL)" if BR2_KERNEL_ADD_SNAPSHOT - -config BR2_LINUX26_RC_SNAPSHOT_VERSION - string - default "$(BR2_KERNEL_NEXT_VERSION)-rc$(BR2_KERNEL_RC_LEVEL)-git$(BR2_KERNEL_GIT_LEVEL)" if BR2_KERNEL_ADD_SNAPSHOT - -# --------------------------------------------------------------------------- - -choice - prompt "Linux Kernel Version" - default BR2_LINUX_2_6_STABLE - help - Select the specific Linux version you want to use - -config BR2_LINUX_2_6_STABLE - bool "The latest stable Linux kernel (2.6.33.4)" - -config BR2_LINUX_2_6_33 - bool "Linux 2.6.33" - select BR2_KERNEL_BASE - -config BR2_LINUX_2_6_32 - bool "Linux 2.6.32" - select BR2_KERNEL_BASE - -config BR2_LINUX_2_6_31 - bool "Linux 2.6.31" - select BR2_KERNEL_BASE - -config BR2_LINUX_2_6_30 - bool "Linux 2.6.30" - select BR2_KERNEL_BASE - -config BR2_LINUX_2_6_29 - bool "Linux 2.6.29" - select BR2_KERNEL_BASE - -config BR2_LINUX_2_6_28 - bool "Linux 2.6.28" - select BR2_KERNEL_BASE - -config BR2_LINUX_2_6_27 - bool "Linux 2.6.27" - select BR2_KERNEL_BASE - -config BR2_LINUX26_CUSTOM - bool "Linux <custom> version" - -endchoice - -if BR2_LINUX26_CUSTOM -config BR2_CUSTOM_DOWNLOAD_LINUX26_VERSION - string "Linux Tarball version" - default "2.6.31" - help - Specify any .tar.bz2 file - -config BR2_CUSTOM_LINUX26_VERSION - string "Linux Version" - default "2.6.31" - help - Specify what the linux version will be called - -config BR2_CUSTOM_LINUX26_PATCH - string "patch name" - default "patch-2.6.31-rc4.bz2" - help - Specify a patch to be downloaded - -config BR2_CUSTOM_LINUX26_PATCH_SITE - string "patch site" - default "http://www.kernel.org/pub/linux/kernel/v2.6/testing" - help - Specify from where the patch will be downloaded. -endif - -# ----------------------------------------------- - -menu "Patches" - depends on BR2_PACKAGE_LINUX - -config BR2_KERNEL_ADD_KERNEL_ORG_PATCH - bool "Add kernel.org patch" - depends on BR2_KERNEL_BASE - help - Add pre, snapshot or -mm patches - from http://www.kernel.org/ - -config BR2_KERNEL_ADD_LATEST - bool "Use only the latest patch version" - default y - depends on BR2_KERNEL_ADD_KERNEL_ORG_PATCH - help - Restrict the choices to the latest versions - -choice - prompt "Add a kernel.org patch to the Linux Kernel" - depends on BR2_PACKAGE_LINUX - depends on !BR2_KERNEL_PREPATCHED - depends on BR2_KERNEL_ADD_KERNEL_ORG_PATCH - help - Select a patch to add to the Linux kernel - -config BR2_KERNEL_ADD_LATEST_MINORPATCH - bool "Add _latest_ '.#' minor patch" - depends on BR2_KERNEL_ADD_LATEST - select BR2_KERNEL_ADD_PATCH - -config BR2_KERNEL_ADD_MINORPATCH - bool "Add a '.#' minor patch" - depends on !BR2_KERNEL_ADD_LATEST - select BR2_KERNEL_ADD_PATCH - -config BR2_KERNEL_ADD_LATEST_RC_PATCH - bool "Add _latest_ '-rc#' patch" - depends on BR2_KERNEL_ADD_LATEST - select BR2_KERNEL_ADD_PATCH - -config BR2_KERNEL_ADD_RC_PATCH - bool "Add an '-rc#' patch" - depends on !BR2_KERNEL_ADD_LATEST - select BR2_KERNEL_ADD_PATCH - -config BR2_KERNEL_ADD_LATEST_SNAPSHOT - bool "Add _latest_ 'snapshot' patch" - depends on BR2_KERNEL_ADD_LATEST - select BR2_KERNEL_ADD_PATCH - -config BR2_KERNEL_ADD_SNAPSHOT - bool "Add a 'snapshot' patch (linux-2.6.X-rc#-git#)" - depends on !BR2_KERNEL_ADD_LATEST - select BR2_KERNEL_ADD_PATCH - -endchoice - -config BR2_KERNEL_ADD_PATCH - bool - -config BR2_KERNEL_MINORLEVEL - string "patch level" - default "" - depends on BR2_KERNEL_ADD_MINORPATCH - -config BR2_KERNEL_RC_LEVEL - string "-rc patch level" - default "" - depends on BR2_KERNEL_ADD_RC_PATCH || BR2_KERNEL_ADD_SNAPSHOT - -config BR2_KERNEL_GIT_LEVEL - string "-git patch level" - default "" - depends on BR2_KERNEL_ADD_SNAPSHOT - -source "target/device/Config.in.linux.patches" - -config BR2_LINUX_BSP_PATCH - string "Additional patch to apply (from \$(DL_DIR))" - default "" - help - Apply a patch located in \$(DL_DIR). - You need to download or create this before - enable this option - -config BR2_KERNEL_PATCH - string - default "patch-$(BR2_DOWNLOAD_LINUX26_VERSION).$(BR2_KERNEL_PATCH_LEVEL).bz2" if BR2_KERNEL_ADD_LATEST_MINORPATCH - default "patch-$(BR2_DOWNLOAD_LINUX26_VERSION).$(BR2_KERNEL_PATCH_LEVEL).bz2" if BR2_KERNEL_ADD_MINORPATCH - default "patch-$(LINUX26_LATEST_RC_VERSION).bz2" if BR2_KERNEL_ADD_LATEST_RC_PATCH - default "patch-$(BR2_LINUX26_RC_VERSION).bz2" if BR2_KERNEL_ADD_RC_PATCH - default "patch-$(LINUX26_LATEST_GIT_VERSION).bz2" if BR2_KERNEL_ADD_LATEST_SNAPSHOT - default "patch-$(BR2_LINUX26_SNAPSHOT_VERSION).bz2" if BR2_KERNEL_ADD_SNAPSHOT - default "$(BR2_CUSTOM_LINUX26_PATCH)" if BR2_LINUX26_CUSTOM - -config BR2_EXTRA_VERSION - string - default ".$(BR2_KERNEL_PATCH_LEVEL)" if BR2_KERNEL_ADD_LATEST_MINORPATCH - default ".$(BR2_KERNEL_PATCH_LEVEL)" if BR2_KERNEL_ADD_MINORPATCH - default "$(BR2_KERNEL_RC_LEVEL)" if BR2_KERNEL_ADD_LATEST_RC_PATCH - default "$(BR2_KERNEL_RC_LEVEL)" if BR2_KERNEL_ADD_RC_PATCH - default "$(BR2_KERNEL_GIT_LEVEL)" if BR2_KERNEL_ADD_LATEST_SNAPSHOT - default "$(BR2_KERNEL_GIT_LEVEL)" if BR2_KERNEL_ADD_SNAPSHOT - default "" if BR2_LINUX26_CUSTOM -endmenu - -# ----------------------------------------------- - -config BR2_KERNEL_PREPATCHED - bool - -config BR2_KERNEL_BASE - bool - -config BR2_KERNEL_LATEST - bool - -config BR2_DOWNLOAD_LINUX26_VERSION - string - default "$(BR2_KERNEL_THIS_VERSION)" if BR2_KERNEL_BASE - default "$(BR2_KERNEL_CURRENT_VERSION)" if BR2_LINUX_2_6_STABLE - default "$(BR2_DEFAULT_KERNEL_HEADERS)" if BR2_KERNEL_LINUX_HEADERS_VERSION - default $(BR2_CUSTOM_DOWNLOAD_LINUX26_VERSION) if BR2_LINUX26_CUSTOM - -config BR2_LINUX26_VERSION - string - default "$(BR2_KERNEL_THIS_VERSION).$(BR2_KERNEL_PATCH_LEVEL)" if BR2_KERNEL_ADD_LATEST_MINORPATCH&& BR2_KERNEL_BASE - default "$(BR2_KERNEL_THIS_VERSION).$(BR2_KERNEL_PATCH_LEVEL)" if BR2_KERNEL_ADD_MINORPATCH && BR2_KERNEL_BASE - default "$(LINUX26_LATEST_RC_VERSION)" if BR2_KERNEL_ADD_LATEST_RC_PATCH - default "$(BR2_LINUX26_RC_VERSION)" if BR2_KERNEL_ADD_RC_PATCH && BR2_KERNEL_BASE - default "$(LINUX26_LATEST_GIT_VERSION)" if BR2_KERNEL_ADD_LATEST_SNAPSHOT - default "$(BR2_LINUX26_SNAPSHOT_VERSION)" if BR2_KERNEL_ADD_SNAPSHOT && BR2_KERNEL_BASE - default "$(BR2_KERNEL_THIS_VERSION)" if ! BR2_KERNEL_ADD_PATCH && BR2_KERNEL_BASE - default "$(BR2_KERNEL_CURRENT_VERSION)"if BR2_LINUX_2_6_STABLE - default "$(BR2_CUSTOM_LINUX26_VERSION)" if BR2_LINUX26_CUSTOM - -menu "Linux Kernel Configuration" - -choice - prompt "Linux Kernel Configuration" - depends on BR2_PACKAGE_LINUX - default BR2_PACKAGE_LINUX_USE_KCONFIG - help - Select the way to configure the Linux - -config BR2_PACKAGE_LINUX_USE_KCONFIG - bool ".config file" - depends on BR2_PACKAGE_LINUX - help - kernel's .config to use to build a kernel for the target. - - If the above setting is empty, you can change the default - board-imposed value by passing LINUX26_KCONFIG=<path> to - make. - -config BR2_PACKAGE_LINUX_USE_DEFCONFIG - bool "Run make <board>_defconfig " - depends on BR2_PACKAGE_LINUX - help - Configure Linux by make <board>_defconfig - You have to supply a BOARD_NAME, either by - defining it in a BSP or by make BOARD_NAME=<board> - -config BR2_PACKAGE_LINUX_USE_XCONFIG - bool "Run make ARCH=$(ARCH) [xconfig|menuconfig] before build" - depends on BR2_PACKAGE_LINUX - help - Configure Linux by make xconfig|menuconfig -endchoice - -config BR2_PACKAGE_LINUX_KCONFIG - string ".config file" - depends on BR2_PACKAGE_LINUX_USE_KCONFIG - default "$(BR2_BOARD_PATH)/$(BR2_BOARD_NAME)-linux-$(BR2_LINUX26_VERSION).config" - help - kernel's .config to use to build a kernel for the target. - - If the above setting is empty, you can change the default - board-imposed value by passing LINUX26_KCONFIG=<path> to - make. - -choice - prompt "Preferred config tool" - default BR2_MAKE_MENUCONFIG - depends on BR2_PACKAGE_LINUX_USE_XCONFIG - help - Define the preferred tool to invoke if a configuration is invalid - -config BR2_MAKE_XCONFIG - bool "make xconfig (needs QT3 headers on host)" - help - Run "make xconfig" if kernel ".config" is invalid - -config BR2_MAKE_MENUCONFIG - bool "make menuconfig" - help - Run "make menuconfig" if kernel ".config" is invalid - -endchoice - -config BR2_KERNEL_CONFIG_METHOD - string - default "xconfig" if BR2_MAKE_XCONFIG - default "menuconfig" if BR2_MAKE_MENUCONFIG - -endmenu - -choice - prompt "kernel binary format" - depends on BR2_PACKAGE_LINUX - default BR2_LINUX_BIN_BZIMAGE if BR2_i386 - default BR2_LINUX_BIN_BZIMAGE if BR2_x86_64 - default BR2_LINUX_BIN_UIMAGE - help - Select the specific Linux binary type you want to use - -config BR2_LINUX_BIN_BZIMAGE - bool "bzImage" - depends on BR2_PACKAGE_LINUX - -config BR2_LINUX_BIN_UIMAGE - bool "uImage" - depends on BR2_PACKAGE_LINUX - -config BR2_LINUX_BIN_VMLINUX - bool "vmlinux" - depends on BR2_PACKAGE_LINUX - -config BR2_LINUX_BIN_ZIMAGE - bool "zImage" - depends on BR2_PACKAGE_LINUX - -config BR2_LINUX_BIN_CUSTOM - bool "<custom> Linux binary" - depends on BR2_PACKAGE_LINUX - help - Build custom Linux binary format - -endchoice - -config BR2_LINUX_BIN_CUSTOM_BIN - string "custom kernel binary format" - depends on BR2_LINUX_BIN_CUSTOM - default "" - help - Which Linux binary format? - -config BR2_PACKAGE_LINUX_FORMAT - string #"kernel binary format" - depends on BR2_PACKAGE_LINUX - default "bzImage" if BR2_LINUX_BIN_BZIMAGE - default "uImage" if BR2_LINUX_BIN_UIMAGE - default "vmlinux" if BR2_LINUX_BIN_VMLINUX - default "zImage" if BR2_LINUX_BIN_ZIMAGE - default $(BR2_LINUX_BIN_CUSTOM_BIN) if BR2_LINUX_BIN_CUSTOM - help - kernel binary format. - Popular values include: - - bzImage - - zImage - - vmlinux - - zImage - - xipImage - and other, architecture dependant formats. - - Note that the default format is supposed to be set by your - board-description, if any. - i386 and compatible default to bzImage if nothing was given - above. - If the above setting is empty, you can change the default - board-imposed value by passing LINUX26_FORMAT=<string> to - make. - -menu "Destinations for linux kernel binaries" - -config BR2_LINUX_COPYTO_ROOTFS - bool "Copy kernel to root file system" - depends on BR2_PACKAGE_LINUX - help - Copy kernel to <root>/boot directory - -config BR2_LINUX_COPYTO_TFTPBOOT - bool "Copy kernel to /tftpboot" - help - Copy kernel to /tftpboot directory - -config BR2_LINUX_COPYTO - string "Copy kernel to <dir>..." - default "" - help - Copy kernel to secondary location - -config BR2_LINUX_COPY_CONFIGURATION - bool "Copy buildroot configuration to Linux file system" - help - The configuration files for buildroot, uclibc, busybox and linux - are copied to the "<root>/boot" directory. - -endmenu -endif - diff --git a/target/linux/Config.in.versions b/target/linux/Config.in.versions deleted file mode 100644 index c5263a44d..000000000 --- a/target/linux/Config.in.versions +++ /dev/null @@ -1,62 +0,0 @@ -# This file defines the latest version of -# You also have to edit BR2_LINUX_2_6_STABLE -# in target/linux/Config.in.advanced -# which is approximately at line 136 - -config LINUX26_LATEST_RC_VERSION - string - default "2.6.31-rc4" if BR2_KERNEL_ADD_LATEST_RC_PATCH - help - Not really available as of 20090103 - -config LINUX26_LATEST_GIT_VERSION - string - default "2.6.30-rc4-git4" if BR2_KERNEL_ADD_LATEST_SNAPSHOT - -config BR2_KERNEL_CURRENT_VERSION - string - default "2.6.33.4" - help - This is the latest stable kernel (including minor version). - -config BR2_KERNEL_LATEST_2_6_33 - string - default "4" - help - Released 2010-May-12. - -config BR2_KERNEL_LATEST_2_6_32 - string - default "13" - help - Released 2010-May-12. - -config BR2_KERNEL_LATEST_2_6_31 - string - default "13" - help - Released 2010-Apr-01 (last .31-stable release). - -config BR2_KERNEL_LATEST_2_6_30 - string - default "10" - help - Released 2009-Dec-04 (last .30-stable release). - -config BR2_KERNEL_LATEST_2_6_29 - string - default "6" - help - Released 2009-Jul-02 (last .29-stable release). - -config BR2_KERNEL_LATEST_2_6_28 - string - default "10" - help - Released 2009-May-02 (last .28-stable release). - -config BR2_KERNEL_LATEST_2_6_27 - string - default "46" - help - Released 2010-Apr-01. diff --git a/target/linux/Makefile.in b/target/linux/Makefile.in deleted file mode 100644 index f01982440..000000000 --- a/target/linux/Makefile.in +++ /dev/null @@ -1,250 +0,0 @@ -############################################################# -# -# Linux kernel 2.6 target -# -############################################################# -ifneq ($(filter $(TARGETS),linux26),) - - -ifeq ($(DOWNLOAD_LINUX26_VERSION),) -# User did not define linux version, try using headers -ifeq ($(LINUX_HEADERS_VERSION),) -# We did not have headers (this is for real???) -# Version of linux before patches -DOWNLOAD_LINUX26_VERSION=2.6.22.1 -# Version of Linux after applying any patches -LINUX26_VERSION=2.6.22.1 -else -# OK, we have headers, use them... -DOWNLOAD_LINUX26_VERSION=$(LINUX_HEADERS_VERSION) -LINUX26_VERSION=$(LINUX_HEADERS_VERSION) -endif -endif - -LINUX26_SOURCE=linux-$(DOWNLOAD_LINUX26_VERSION).tar.bz2 -LINUX26_BZCAT:=$(BZCAT) -LINUX26_SITE=$(BR2_KERNEL_MIRROR)/linux/kernel/v2.6 - -ifeq ($(BOARD_PATH),) -BOARD_PATH:=$(call qstrip,$(BR2_BOARD_PATH)) -endif - -# Linux kernel configuration file -# Has to be set by the target/device -# If it is not set by the target/device, then pick the one from .config -ifndef LINUX26_KCONFIG -ifneq ($(call qstrip,$(BR2_PACKAGE_LINUX_KCONFIG)),) -LINUX26_KCONFIG=$(call qstrip,$(BR2_PACKAGE_LINUX_KCONFIG)) -else -# LINUX26_KCONFIG=$(BOARD_PATH)/linux26.config -endif -endif - -ifndef LINUX26_FORMAT -ifneq ($(call qstrip,$(BR2_PACKAGE_LINUX_FORMAT)),) -LINUX26_FORMAT=$(call qstrip,$(BR2_PACKAGE_LINUX_FORMAT)) -else -ifneq ($(filter i386 x86-64,$(KERNEL_ARCH)),) -# zImage target no longer available on x86 since 2.6.30 -LINUX26_FORMAT=bzImage -else -LINUX26_FORMAT=zImage -endif -endif -endif - -# Has to be set by the target/device -ifndef LINUX26_BINLOC -# default: -ifeq ($(LINUX26_FORMAT),vmlinux) -LINUX26_BINLOC=$(LINUX26_FORMAT) -else -ifeq ($(BR2_ARCH),"cris") -LINUX26_BINLOC=arch/$(KERNEL_ARCH)/arch-v10/boot/$(LINUX26_FORMAT) -else -LINUX26_BINLOC=arch/$(KERNEL_ARCH)/boot/$(LINUX26_FORMAT) -endif -endif -endif - -# File name for the Linux kernel binary -ifndef LINUX26_KERNEL -LINUX26_KERNEL_NAME=$(BINARIES_DIR)/$(LINUX26_FORMAT) -endif - -# Version of Linux AFTER patches -LINUX26_DIR=$(BUILD_DIR)/linux-$(LINUX26_VERSION) - -# for packages that need it -LINUX_VERSION:=$(LINUX26_VERSION) -LINUX_DIR=$(LINUX26_DIR) -LINUX_KERNEL=$(LINUX26_KERNEL_NAME) - -# kernel patches -ifeq ($(strip $(LINUX26_PATCH_DIR)),) -ifneq ($(BOARD_PATH),) -LINUX26_PATCH_DIR:=$(BOARD_PATH)/kernel-patches/ -endif -endif -LINUX26_MAKE_FLAGS = HOSTCC="$(HOSTCC)" HOSTCFLAGS="$(HOSTCFLAGS)" \ - ARCH=$(KERNEL_ARCH) \ - INSTALL_MOD_PATH=$(TARGET_DIR) \ - CROSS_COMPILE=$(TARGET_CROSS) \ - LDFLAGS="$(TARGET_LDFLAGS)" \ - LZMA="$(LZMA)" - -$(LINUX26_KCONFIG): - @if [ ! -f "$(LINUX26_KCONFIG)" ] ; then \ - echo ""; \ - echo "You should create a .config for your kernel"; \ - echo "and install it as $(LINUX26_KCONFIG)"; \ - echo ""; \ - sleep 5; \ - fi - -ifneq ($(strip $(LINUX26_VERSION)),$(strip $(LINUX_HEADERS_VERSION))) -$(DL_DIR)/$(LINUX26_SOURCE): - $(call DOWNLOAD,$(LINUX26_SITE),$(LINUX26_SOURCE)) -endif # ($(LINUX26_VERSION),$(LINUX_HEADERS_VERSION)) - -$(LINUX26_DIR)/.unpacked: $(DL_DIR)/$(LINUX26_SOURCE) - rm -rf $(LINUX26_DIR) - @echo "*** Unpacking kernel source" - $(LINUX26_BZCAT) $(DL_DIR)/$(LINUX26_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - -ifneq ($(DOWNLOAD_LINUX26_VERSION),$(LINUX26_VERSION)) - # Rename the dir from the downloaded version to the AFTER patch version - mv -f $(BUILD_DIR)/linux-$(DOWNLOAD_LINUX26_VERSION) $(LINUX26_DIR) -endif - touch $@ - -$(LINUX26_DIR)/.patched: $(LINUX26_DIR)/.unpacked $(LINUX_HEADERS_DEPENDS) - toolchain/patch-kernel.sh $(LINUX26_DIR) toolchain/kernel-headers \ - linux-$(LINUX26_VERSION)-\*.patch{,.gz,.bz2} -ifeq ($(BR2_KERNEL_HEADERS_RT),y) - toolchain/patch-kernel.sh $(LINUX26_DIR) $(DL_DIR) $(LINUX_RT_SOURCE) -endif -ifneq ($(KERNEL_HEADERS_PATCH_DIR),) - toolchain/patch-kernel.sh $(LINUX26_DIR) $(KERNEL_HEADERS_PATCH_DIR) \ - linux-$(LINUX26_VERSION)-\*.patch{,.gz,.bz2} -endif -ifeq ($(BR2_PACKAGE_OPENSWAN),y) - toolchain/patch-kernel.sh $(LINUX26_DIR) package/openswan \ - linux-$(LINUX26_VERSION)-\*.patch{,.gz,.bz2} -endif -ifneq ($(LINUX26_PATCH_DIR),) - if [ -d $(LINUX26_PATCH_DIR) ] ; then \ - toolchain/patch-kernel.sh $(LINUX26_DIR) $(LINUX26_PATCH_DIR) linux-$(LINUX26_VERSION)\*.patch ; \ - fi -endif - touch $@ - -$(LINUX26_DIR)/.configured: $(LINUX26_DIR)/.patched $(LINUX26_KCONFIG) - cp -dpf $(LINUX26_KCONFIG) $(LINUX26_DIR)/.config - $(SED) '/CONFIG_AEABI=y/d' $(LINUX26_DIR)/.config -ifeq ($(BR2_ARM_EABI),y) - echo "CONFIG_AEABI=y" >> $(LINUX26_DIR)/.config - $(SED) '/CONFIG_OABI_COMPAT/d' $(LINUX26_DIR)/.config - echo "# CONFIG_OABI_COMPAT is not set" >> $(LINUX26_DIR)/.config -else - echo "# CONFIG_AEABI is not set" >> $(LINUX26_DIR)/.config -endif - $(SED) '/CONFIG_IPV6=y/d' $(LINUX26_DIR)/.config -ifeq ($(BR2_INET_IPV6),y) - echo "CONFIG_IPV6=y" >> $(LINUX26_DIR)/.config -else - echo "# CONFIG_IPV6 is not set" >> $(LINUX26_DIR)/.config -endif - $(SED) '/CONFIG_INITRAMFS_SOURCE/d' $(LINUX26_DIR)/.config - $(SED) '/INITRAMFS_ROOT_.ID/d' $(LINUX26_DIR)/.config -ifeq ($(BR2_TARGET_ROOTFS_INITRAMFS),y) - echo "CONFIG_INITRAMFS_SOURCE=\"$(BINARIES_DIR)/rootfs.initramfs\"" >> \ - $(LINUX26_DIR)/.config - echo "CONFIG_INITRAMFS_ROOT_UID=0" >> $(LINUX26_DIR)/.config - echo "CONFIG_INITRAMFS_ROOT_GID=0" >> $(LINUX26_DIR)/.config -else - echo "CONFIG_INITRAMFS_SOURCE=\"\"" >> $(LINUX26_DIR)/.config -endif -ifeq ($(BR2_PACKAGE_BUSYBOX_INITRAMFS),y) - # precedence for a small initramfs - $(SED) '/CONFIG_INITRAMFS_SOURCE/d' $(LINUX26_DIR)/.config - $(SED) '/INITRAMFS_ROOT_.ID/d' $(LINUX26_DIR)/.config - echo "CONFIG_INITRAMFS_SOURCE=\"$(BB_INITRAMFS_TARGET)\"" >> \ - $(LINUX26_DIR)/.config - echo "CONFIG_INITRAMFS_ROOT_UID=0" >> $(LINUX26_DIR)/.config - echo "CONFIG_INITRAMFS_ROOT_GID=0" >> $(LINUX26_DIR)/.config -endif - $(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) oldconfig - touch $@ - -$(LINUX26_DIR)/.depend_done: $(LINUX26_DIR)/.configured - $(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) prepare - touch $@ - -$(LINUX26_KERNEL_NAME): $(INITRAMFS_TARGET) $(BB_INITRAMFS_TARGET) \ - $(LINUX26_DIR)/.depend_done - $(MAKE) $(LINUX26_MAKE_FLAGS) \ - -C $(LINUX26_DIR) $(LINUX26_FORMAT) - cp -pf $(LINUX26_DIR)/$(LINUX26_BINLOC) $(LINUX26_KERNEL_NAME) - touch -c $@ - -$(TARGET_DIR)/lib/modules/$(LINUX26_VERSION)/modules.dep: $(LINUX26_DIR)/.configured - rm -rf $(TARGET_DIR)/lib/modules/$(LINUX26_VERSION) - rm -f $(TARGET_DIR)/sbin/cardmgr - @if grep -q CONFIG_MODULES=y $(LINUX26_DIR)/.config; then \ - set -x; \ - echo "Have CONFIG_MODULES"; \ - $(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) modules; \ - $(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) \ - DEPMOD=$(STAGING_DIR)/bin/$(GNU_TARGET_NAME)-depmod26 \ - INSTALL_MOD_PATH=$(TARGET_DIR) modules_install; \ - rm -f $(TARGET_DIR)/lib/modules/$(LINUX26_VERSION)/build \ - $(TARGET_DIR)/lib/modules/$(LINUX26_VERSION)/source; \ - $(STAGING_DIR)/bin/$(GNU_TARGET_NAME)-depmod26 -b $(TARGET_DIR) $(LINUX_HEADERS_VERSION); \ - else \ - echo "No CONFIG_MODULES"; \ - fi - touch -c $@ - -linux26-menuconfig: host-sed dirs $(LINUX26_DIR)/.patched - if [ ! -f $(LINUX26_DIR)/.config ]; then \ - [ -n "$(LINUX26_KCONFIG)" ] && [ -f $(LINUX26_KCONFIG) ] && \ - cp $(LINUX26_KCONFIG) $(LINUX26_DIR)/.config || \ - true; \ - fi - $(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) menuconfig - -[ -f $(LINUX26_DIR)/.config ] && touch $(LINUX26_DIR)/.configured - -linux26-xconfig: host-sed dirs $(LINUX26_DIR)/.patched - [ -f $(LINUX26_DIR)/.config ] || cp $(LINUX26_KCONFIG) $(LINUX26_DIR)/.config - $(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) xconfig - -[ -f $(LINUX26_DIR)/.config ] && touch $(LINUX26_DIR)/.configured - -linux26: $(LINUX26_KERNEL_NAME) - -$(LINUX26_DIR)/.modules_installed: $(TARGET_DIR)/lib/modules/$(LINUX26_VERSION)/modules.dep - touch $@ - -linux26-modules: cross-depmod26 $(LINUX26_DIR)/.modules_installed - -linux26-source: $(DL_DIR)/$(LINUX26_SOURCE) - -linux26-unpacked: $(LINUX26_DIR)/.patched - -linux26-config: host-sed $(LINUX26_DIR)/.configured - -linux26-update: - cp -dpf $(LINUX26_DIR)/.config $(LINUX26_KCONFIG) - -# force rebuild -linux26-force: - touch $(LINUX26_DIR)/.configured - -# This has been renamed so we do _NOT_ by default run this on 'make clean' -linux26clean: - rm -f $(LINUX26_KERNEL_NAME) $(LINUX26_DIR)/.configured - -$(MAKE) PATH=$(TARGET_PATH) -C $(LINUX26_DIR) clean - -linux26-dirclean: - rm -rf $(LINUX26_DIR) - -endif diff --git a/target/linux/Makefile.in.advanced b/target/linux/Makefile.in.advanced deleted file mode 100644 index 9cbbd2c74..000000000 --- a/target/linux/Makefile.in.advanced +++ /dev/null @@ -1,532 +0,0 @@ -############################################################################### -# -# Linux kernel 2.6 target (Advanced configuration) -# -############################################################################### -ifneq ($(filter $(TARGETS),linux26),) - -# ----------------------------------------------------------------------------- -# Make sure LINUX_HEADERS_VERSION is defined -ifeq ($(LINUX_HEADERS_VERSION),) -# We did not have headers (this is for real???) -LINUX_HEADERS_VERSION:=2.6.22.1 -endif - -# ----------------------------------------------------------------------------- -# STRATEGY FOR DOWNLOAD_LINUX26_VERSION -# 1. Use definition from user Makefile -# 2. Use definition from Kconfig -# 3. Use Linux Headers version -# 4. Use default (2.6.22.1) -ifeq ($(DOWNLOAD_LINUX26_VERSION),) -ifneq ($(BR2_DOWNLOAD_LINUX26_VERSION),) -DOWNLOAD_LINUX26_VERSION:=$(call qstrip,$(BR2_DOWNLOAD_LINUX26_VERSION)) -else -DOWNLOAD_LINUX26_VERSION:=$(LINUX_HEADERS_VERSION) -endif -endif - -# ----------------------------------------------------------------------------- -# STRATEGY FOR LINUX26_VERSION -# 1. Use definition from user Makefile -# 2. Use definition from Kconfig -# 3. Use Linux Headers version -# 4. Use default (2.6.22.1) -ifeq ($(LINUX26_VERSION),) -ifneq ($(BR2_LINUX26_VERSION),) -LINUX26_VERSION:=$(call qstrip,$(BR2_LINUX26_VERSION)) -else -LINUX26_VERSION:=$(LINUX_HEADERS_VERSION) -endif -endif - -# Ask the kernel what version number it will use when installing modules -LINUX26_VERSION_PROBED = `$(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) --no-print-directory -s kernelrelease` - -ifeq ($(BOARD_PATH),) -BOARD_PATH:=$(call qstrip,$(BR2_BOARD_PATH)) -endif - -# Version of Linux AFTER patches -LINUX26_DIR:=$(BUILD_DIR)/linux-$(LINUX26_VERSION) - -# for packages that need it -LINUX_VERSION:=$(LINUX26_VERSION) -LINUX_DIR:=$(LINUX26_DIR) - -# ----------------------------------------------------------------------------- -# Define source name and sites -LINUX26_SOURCE:=linux-$(DOWNLOAD_LINUX26_VERSION).tar.bz2 -LINUX26_SITE:=$(call qstrip,$(BR2_KERNEL_SITE)) - -LINUX26_PATCH_SOURCE:=$(call qstrip,$(BR2_KERNEL_PATCH)) -LINUX26_PATCH_SITE:=$(call qstrip,$(BR2_KERNEL_PATCH_SITE)) - -LINUX26_BSP_PATCH:=$(call qstrip,$(BR2_LINUX_BSP_PATCH)) - -ifneq ($(LINUX26_BSP_PATCH),) -LINUX_HEADERS_DEPENDS:= $(DL_DIR)/$(LINUX26_BSP_PATCH) -endif - -ifneq ($(LINUX26_PATCH_SOURCE),) -LINUX_HEADERS_DEPENDS+=$(DL_DIR)/$(LINUX26_PATCH_SOURCE) -endif - -# ------------------------------------ -# kernel patches provided by buildroot -ifeq ($(strip $(LINUX26_PATCH_DIR)),) -LINUX26_PATCH_DIR:=$(BOARD_PATH)/kernel-patches/ -endif - -# kernel architecture patches provided by buildroot -KERNEL_ARCH_PATCH_DIR:=$(call qstrip,$(BR2_KERNEL_ARCH_PATCH_DIR)) - - - - -# ----------------------------------------------------------------------------- -# Linux kernel configuration file -# This is used if BR2_PACKAGE_LINUX_USE_KCONFIG is set -# Has to be set by the target/device -# If it is not set by the target/device, then pick the one from .config -ifndef LINUX26_KCONFIG -ifneq ($(call qstrip,$(BR2_PACKAGE_LINUX_KCONFIG)),) -LINUX26_KCONFIG:=$(call qstrip,$(BR2_PACKAGE_LINUX_KCONFIG)) -else -ifeq ($(BR2_i386),y) -LINUX26_KCONFIG:=$(BOARD_PATH)/linux26.config -else -LINUX26_KCONFIG:=$(BOARD_PATH)/linux-$(LINUX26_VERSION).config -endif -endif -endif - -KERNEL_CONFIG_METHOD:=$(call qstrip,$(BR2_KERNEL_CONFIG_METHOD)) -ifeq ($(KERNEL_CONFIG_METHOD),) -KERNEL_CONFIG_METHOD:=menuconfig -endif - -# ----------------------------------------------------------------------------- -ifndef LINUX26_FORMAT -ifneq ($(call qstrip,$(BR2_PACKAGE_LINUX_FORMAT)),) -LINUX26_FORMAT:=$(call qstrip,$(BR2_PACKAGE_LINUX_FORMAT)) -else -ifneq ($(filter i386 x86-64,$(KERNEL_ARCH)),) -# zImage target no longer available on x86 since 2.6.30 -LINUX26_FORMAT=bzImage -else -LINUX26_FORMAT:=zImage -endif -endif -endif - -# ----------------------------------------------------------------------------- -# Has to be set by the target/device - -LINUX26_MKIMAGE_DEP:= - -# -------------- -# VMLINUX -ifeq ($(LINUX26_FORMAT),vmlinux) -ifeq ($(LINUX26_BINLOC),) -LINUX26_BINLOC:=$(LINUX26_FORMAT) -endif -endif - -# -------------- -# UIMAGE -ifeq ($(LINUX26_FORMAT),uImage) -LINUX26_MKIMAGE_DEP:=$(MKIMAGE) -ifeq ($(LINUX26_BINLOC),) -LINUX26_BINLOC:=arch/$(KERNEL_ARCH)/boot/$(LINUX26_FORMAT) -endif -endif - -# -------------- -# ZIMAGE -ifeq ($(LINUX26_FORMAT),zImage) -ifeq ($(LINUX26_BINLOC),) -LINUX26_BINLOC:=arch/$(KERNEL_ARCH)/boot/$(LINUX26_FORMAT) -endif -endif - -# -------------- -# BZIMAGE -ifeq ($(LINUX26_FORMAT),bzImage) -ifeq ($(LINUX26_BINLOC),) -LINUX26_BINLOC:=arch/$(KERNEL_ARCH)/boot/bzImage -endif -endif - -# ----------------------------------------------------------------------------- -# File name for the Linux kernel binary -LINUX26_KERNEL_NAME:=$(LINUX26_FORMAT) - - -ifeq ($(BOARD_NAME),) -BOARD_NAME=$(ARCH) -endif - -ifndef LINUX26_KERNEL -LINUX26_KERNEL:=$(BINARIES_DIR)/$(LINUX26_KERNEL_NAME) -endif - -# for packages that need it -LINUX_KERNEL:=$(LINUX26_KERNEL) - - -# ----------------------------------------------------------------------------- -LINUX26_BZCAT:=$(BZCAT) - -LINUX26_MAKE_FLAGS = HOSTCC="$(HOSTCC)" HOSTCFLAGS="$(HOSTCFLAGS)" \ - ARCH=$(KERNEL_ARCH) \ - INSTALL_MOD_PATH=$(TARGET_DIR) \ - CROSS_COMPILE=$(TARGET_CROSS) \ - LDFLAGS="$(TARGET_LDFLAGS)" \ - LZMA="$(LZMA)" \ - PATH=$(PATH) - -# ============================================================================= -# ifneq ($(strip $(LINUX26_VERSION)),$(strip $(LINUX_HEADERS_VERSION))) - -ifneq ($(strip $(LINUX26_SOURCE)),$(strip $(LINUX_HEADERS_SOURCE))) -$(DL_DIR)/$(LINUX26_SOURCE): - $(call DOWNLOAD,$(LINUX26_SITE),$(LINUX26_SOURCE)) -endif # ($(LINUX26_VERSION),$(LINUX_HEADERS_VERSION)) - -ifneq ($(strip $(LINUX26_PATCH_SOURCE)),) -$(DL_DIR)/$(LINUX26_PATCH_SOURCE): - $(call DOWNLOAD,$(LINUX26_PATCH_SITE),$(LINUX26_PATCH_SOURCE)) -endif - -$(LINUX26_DIR)/.unpacked: $(DL_DIR)/$(LINUX26_SOURCE) - rm -rf $(LINUX26_DIR) - @echo "*** Unpacking kernel source" - $(LINUX26_BZCAT) $(DL_DIR)/$(LINUX26_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - -ifneq ($(DOWNLOAD_LINUX26_VERSION),$(LINUX26_VERSION)) - # Rename the dir from the downloaded version to the AFTER patch version - mv -f $(BUILD_DIR)/linux-$(DOWNLOAD_LINUX26_VERSION) $(LINUX26_DIR) - echo $(LINUX26_VERSION_PROBED) > $(BUILD_DIR)/.linux-version -endif - touch $@ - - -# ----------------------------------------------------------------------------- -LINUX26_TARGETS+=$(LINUX26_KERNEL) $(BUILD_DIR)/.linux-version - -ifeq ($(BR2_LINUX_COPYTO_ROOTFS),y) -LINUX26_TARGETS+=$(TARGET_DIR)/boot/$(LINUX26_KERNEL_NAME) -endif - -ifeq ($(BR2_LINUX_COPYTO_TFTPBOOT),y) -LINUX26_TARGETS+=/tftpboot/$(LINUX26_KERNEL_NAME) -endif - -ifneq ($(call qstrip,$(BR2_LINUX_COPYTO)),) -LINUX_COPYTO:=$(call qstrip,$(BR2_LINUX_COPYTO)) -LINUX26_TARGETS+=$(LINUX_COPYTO)/$(LINUX26_KERNEL_NAME) -endif - -ifneq ($(BR2_LINUX_COPY_CONFIGURATION),) -LINUX26_TARGETS+=$(TARGET_DIR)/boot/buildroot.config -LINUX26_TARGETS+=$(TARGET_DIR)/boot/linux-$(LINUX26_VERSION).config -LINUX26_TARGETS+=$(TARGET_DIR)/boot/uclibc.config -ifeq ($(BR2_PACKAGE_BUSYBOX),y) -LINUX26_TARGETS+=$(TARGET_DIR)/boot/busybox.config -endif -endif -# ----------------------------------------------------------------------------- - -$(LINUX26_DIR)/.patched: $(LINUX26_DIR)/.unpacked $(LINUX_HEADERS_DEPENDS) -ifneq ($(LINUX26_PATCH_SOURCE),) - toolchain/patch-kernel.sh $(LINUX26_DIR) $(DL_DIR) $(LINUX26_PATCH_SOURCE) -endif -ifneq ($(LINUX26_BSP_PATCH),) - toolchain/patch-kernel.sh $(LINUX26_DIR) $(DL_DIR) $(LINUX26_BSP_PATCH) -endif - toolchain/patch-kernel.sh $(LINUX26_DIR) toolchain/kernel-headers \ - linux-$(LINUX26_VERSION)-\*.patch{,.gz,.bz2} -ifeq ($(BR2_KERNEL_HEADERS_RT),y) - toolchain/patch-kernel.sh $(LINUX26_DIR) $(DL_DIR) $(LINUX_RT_SOURCE) -endif -ifneq ($(KERNEL_HEADERS_PATCH_DIR),) - toolchain/patch-kernel.sh $(LINUX26_DIR) $(KERNEL_HEADERS_PATCH_DIR) \ - linux-$(LINUX26_VERSION)\*.patch{,.gz,.bz2} -endif -ifeq ($(BR2_PACKAGE_OPENSWAN),y) - toolchain/patch-kernel.sh $(LINUX26_DIR) package/openswan \ - linux-$(LINUX26_VERSION)\*.patch{,.gz,.bz2} -endif - touch $@ - -$(LINUX26_DIR)/.patched.arch: $(LINUX26_DIR)/.patched -ifneq ($(BR2_KERNEL_ARCH_PATCH_DIR),) - if [ -d $(KERNEL_ARCH_PATCH_DIR) ] ; then \ - toolchain/patch-kernel.sh $(LINUX26_DIR) $(KERNEL_ARCH_PATCH_DIR) \ - linux-\*.patch{,.gz,.bz2} ; \ - fi -endif - touch $@ - -$(LINUX26_DIR)/.patched.board: $(LINUX26_DIR)/.patched.arch $(KERNEL_COND_PATCHES) -ifneq ($(LINUX26_PATCH_DIR),) - if [ -d $(LINUX26_PATCH_DIR) ] ; then \ - toolchain/patch-kernel.sh $(LINUX26_DIR) $(LINUX26_PATCH_DIR) \ - linux-$(LINUX26_VERSION)\*.patch{,.gz,.bz2} ; \ - fi -endif - touch $@ - -# ============================================================================= -linux_patch: $(LINUX26_DIR)/.patched.board - -KERNEL_EXTRA_VERSION:=$(call qstrip,$(BR2_EXTRA_VERSION)) - -lxcf: $(LINUX26_DIR)/.config - -$(LINUX26_DIR)/.config: $(LINUX26_DIR)/.patched.board -ifeq ($(BR2_PACKAGE_LINUX_USE_DEFCONFIG),y) - $(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) $(BOARD_NAME)_defconfig -endif -ifeq ($(BR2_PACKAGE_LINUX_USE_XCONFIG),y) -ifeq ($(KERNEL_CONFIG_METHOD),xconfig) - $(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) xconfig || \ - $(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) menuconfig \ -else - $(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) menuconfig -endif -endif -ifeq ($(BR2_PACKAGE_LINUX_USE_KCONFIG),y) - # Try user defined config - if [ -f "$(LINUX26_KCONFIG)" ] ; then \ - cp -dpf $(LINUX26_KCONFIG) $@ ; \ - fi - # Try to get a config for this linux version in the board directory - echo "LINUX26_VERSION = $(LINUX26_VERSION)" - if [ ! -f "$(LINUX26_DIR)/.config" ] ; then \ - if [ -f "$(BOARD_PATH)/$(BOARD_NAME)-linux-$(LINUX26_VERSION).config" ] ; then \ - cp -dpf $(BOARD_PATH)/$(BOARD_NAME)-linux-$(LINUX26_VERSION).config $@ ; \ - fi ; \ - fi - # Try to get a config for latest linux version in the board directory - if [ ! -f "$(LINUX26_DIR)/.config" ] ; then \ - scripts/get_linux_config.sh $(BOARD_PATH) $(LINUX26_DIR) ; \ - fi - # Use a board config defined in the linux source. - if [ ! -f "$(LINUX26_DIR)/.config" ] ; then \ - $(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) $(BOARD_NAME)_defconfig || \ - echo "$(BOARD_NAME)_defconfig failed..." ; \ - fi - # let the user create his/her own config - if [ ! -f "$(LINUX26_DIR)/.config" ] ; then \ - $(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) $(KERNEL_CONFIG_METHOD) ; \ - fi -endif -ifneq ($(call qstrip,$(BR2_EXTRA_VERSION)),) - $(SED) 's,^EXTRAVERSION.*,EXTRAVERSION = $(KERNEL_EXTRA_VERSION),g' $(LINUX26_DIR)/Makefile -endif -# $(strip $(subst ",, - )) - -# ----------------------------------------------------------------------------- -$(LINUX26_DIR)/.configured: $(LINUX26_DIR)/.config - $(SED) '/CONFIG_AEABI=y/d' $(LINUX26_DIR)/.config -ifeq ($(BR2_ARM_EABI),y) - echo "CONFIG_AEABI=y" >> $(LINUX26_DIR)/.config - $(SED) '/CONFIG_OABI_COMPAT/d' $(LINUX26_DIR)/.config - echo "# CONFIG_OABI_COMPAT is not set" >> $(LINUX26_DIR)/.config -else - echo "# CONFIG_AEABI is not set" >> $(LINUX26_DIR)/.config -endif - $(SED) '/CONFIG_IPV6=y/d' $(LINUX26_DIR)/.config -ifeq ($(BR2_INET_IPV6),y) - echo "CONFIG_IPV6=y" >> $(LINUX26_DIR)/.config -else - echo "# CONFIG_IPV6 is not set" >> $(LINUX26_DIR)/.config -endif - $(SED) '/CONFIG_INITRAMFS_SOURCE/d' $(LINUX26_DIR)/.config - $(SED) '/INITRAMFS_ROOT_.ID/d' $(LINUX26_DIR)/.config -ifeq ($(BR2_TARGET_ROOTFS_INITRAMFS),y) - echo "CONFIG_INITRAMFS_SOURCE=\"$(BINARIES_DIR)/rootfs.initramfs\"" >> \ - $(LINUX26_DIR)/.config - echo "CONFIG_INITRAMFS_ROOT_UID=0" >> $(LINUX26_DIR)/.config - echo "CONFIG_INITRAMFS_ROOT_GID=0" >> $(LINUX26_DIR)/.config -else - echo "CONFIG_INITRAMFS_SOURCE=\"\"" >> $(LINUX26_DIR)/.config -endif -ifeq ($(BR2_PACKAGE_BUSYBOX_INITRAMFS),y) - # precedence for a small initramfs - $(SED) '/CONFIG_INITRAMFS_SOURCE/d' $(LINUX26_DIR)/.config - $(SED) '/INITRAMFS_ROOT_.ID/d' $(LINUX26_DIR)/.config - echo "CONFIG_INITRAMFS_SOURCE=\"$(BB_INITRAMFS_TARGET)\"" >> \ - $(LINUX26_DIR)/.config - echo "CONFIG_INITRAMFS_ROOT_UID=0" >> $(LINUX26_DIR)/.config - echo "CONFIG_INITRAMFS_ROOT_GID=0" >> $(LINUX26_DIR)/.config -endif - $(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) oldconfig - touch $@ - -# ----------------------------------------------------------------------------- -$(LINUX26_DIR)/.depend_done: $(LINUX26_DIR)/.configured $(LINUX26_MKIMAGE_DEP) - mkdir -p $(TARGET_DIR)/boot - -mv $(LINUX26_DIR)/localversion* $(TARGET_DIR)/boot - $(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) prepare - touch $@ - -$(LINUX26_DIR)/$(LINUX26_BINLOC): $(INITRAMFS_TARGET) $(BB_INITRAMFS_TARGET) \ - $(LINUX26_DIR)/.depend_done - $(MAKE) $(LINUX26_MAKE_FLAGS) \ - -C $(LINUX26_DIR) $(LINUX26_FORMAT) - touch $@ - -$(LINUX26_KERNEL): $(LINUX26_DIR)/$(LINUX26_BINLOC) - cp -pf $(LINUX26_DIR)/$(LINUX26_BINLOC) $(LINUX26_KERNEL) - touch $@ - -# ----------------------------------------------------------------------------- -$(STAMP_DIR)/linux_modules_target_installed: $(LINUX26_DIR)/.depend_done - rm -rf $(TARGET_DIR)/lib/modules/$(LINUX26_VERSION_PROBED) - rm -f $(TARGET_DIR)/sbin/cardmgr - # Make Linux depend on modules only if enabled in the .config. - @if [ $(shell grep -c "CONFIG_MODULES=y" $(LINUX26_DIR)/.config) != 0 ] ; then \ - echo "*** Installing Linux kernel modules" ; \ - $(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) modules; \ - $(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) \ - DEPMOD=$(STAGING_DIR)/bin/$(GNU_TARGET_NAME)-depmod26 \ - INSTALL_MOD_PATH=$(TARGET_DIR) modules_install; \ - rm -f $(TARGET_DIR)/lib/modules/$(LINUX26_VERSION_PROBED)/build; \ - rm -f $(TARGET_DIR)/lib/modules/$(LINUX26_VERSION_PROBED)/source; \ - $(STAGING_DIR)/bin/$(GNU_TARGET_NAME)-depmod26 -b $(TARGET_DIR) $(LINUX26_VERSION_PROBED); \ - else \ - echo "*** Skipping installing modules since it is not enabled" ; \ - fi - touch $@ - -linux26-menuconfig: $(LINUX26_DIR)/.patched host-sed - [ -f $(LINUX26_DIR)/.config ] || cp $(LINUX26_KCONFIG) $(LINUX26_DIR)/.config - $(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) menuconfig - -[ -f $(LINUX26_DIR)/.config ] && touch $(LINUX26_DIR)/.configured - -linux26-xconfig: $(LINUX26_DIR)/.patched host-sed - [ -f $(LINUX26_DIR)/.config ] || cp $(LINUX26_KCONFIG) $(LINUX26_DIR)/.config - $(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) xconfig - -[ -f $(LINUX26_DIR)/.config ] && touch $(LINUX26_DIR)/.configured - -$(TARGET_DIR)/boot/$(LINUX26_KERNEL_NAME): $(LINUX26_KERNEL) - mkdir -p $(TARGET_DIR)/boot - cp -dpf $(LINUX26_KERNEL) $(TARGET_DIR)/boot/$(LINUX26_KERNEL_NAME) - -$(TARGET_DIR)/boot/buildroot.config: .config - mkdir -p $(TARGET_DIR)/boot - cp -dpf .config $(TARGET_DIR)/boot/buildroot.config - -$(TARGET_DIR)/boot/linux-$(LINUX26_VERSION).config: $(LINUX26_DIR)/.config - mkdir -p $(TARGET_DIR)/boot - cp -dpf $(LINUX26_DIR)/.config $(TARGET_DIR)/boot/linux-$(LINUX26_VERSION).config - -$(TARGET_DIR)/boot/uclibc.config: $(UCLIBC_DIR)/.config - mkdir -p $(TARGET_DIR)/boot - cp -dpf $(UCLIBC_DIR)/.config $(TARGET_DIR)/boot/uclibc.config - -$(TARGET_DIR)/boot/busybox.config: $(BUSYBOX_DIR)/.config - mkdir -p $(TARGET_DIR)/boot - cp -dpf $(BUSYBOX_DIR)/.config $(TARGET_DIR)/boot/busybox.config - -/tftpboot/$(LINUX26_KERNEL_NAME): $(LINUX26_KERNEL) - -mkdir -p /tftpboot - -cp -dpf $(LINUX26_KERNEL) $@ - -touch $@ - -ifneq ($(LINUX_COPYTO),/tftpboot) -$(LINUX_COPYTO)/$(LINUX26_KERNEL_NAME): $(LINUX26_KERNEL) - mkdir -p $(LINUX_COPYTO) - cp -dpf $(LINUX26_KERNEL) $@ - touch $@ -endif - -$(BUILD_DIR)/.linux-version: $(LINUX26_KERNEL) - echo $(LINUX26_VERSION_PROBED) > $(BUILD_DIR)/.linux-version - echo LINUX_MODULES=`$(LINUX26_VERSION_PROBED)` - -linux26: $(LINUX26_TARGETS) - -linux26-version: $(BUILD_DIR)/.linux-version - -linux26-modules: cross-depmod26 $(STAMP_DIR)/linux_modules_target_installed - -linux26-source: $(DL_DIR)/$(LINUX26_SOURCE) - -linux26-unpacked: $(LINUX26_DIR)/.patched - -linux26-config: host-sed $(LINUX26_DIR)/.configured - -linux26-update: - cp -dpf $(LINUX26_DIR)/.config $(LINUX26_KCONFIG) - -# force rebuild -linux26-force: - touch $(LINUX26_DIR)/.configured - -# This has been renamed so we do _NOT_ by default run this on 'make clean' -linux26clean: - rm -f $(STAMP_DIR)/linux_modules_target_installed - rm -f $(LINUX26_KERNEL) $(LINUX26_DIR)/.configured - -$(MAKE) PATH=$(TARGET_PATH) -C $(LINUX26_DIR) clean - -linux26-dirclean: - rm -rf $(LINUX26_DIR) - -linux26-status: linux-status - -# @echo =$() -linux-status: - @echo BOARD_NAME=$(BOARD_NAME) - @echo BR2_BOARD_PATH=$(BR2_BOARD_PATH) - @echo BR2_CUSTOM_LINUX26_PATCH=$(BR2_CUSTOM_LINUX26_PATCH) - @echo BR2_CUSTOM_LINUX26_PATCH_SITE=$(BR2_CUSTOM_LINUX26_PATCH_SITE) - @echo BR2_DOWNLOAD_LINUX26_VERSION=$(BR2_DOWNLOAD_LINUX26_VERSION) - @echo BR2_LINUX_BSP_PATCH=$(BR2_LINUX_BSP_PATCH) - @echo BR2_LINUX_COPYTO=$(BR2_LINUX_COPYTO) - @echo BR2_LINUX_COPYTO_ROOTFS=$(BR2_LINUX_COPYTO_ROOTFS) - @echo BR2_LINUX_COPYTO_TFTPBOOT=$(BR2_LINUX_COPYTO_TFTPBOOT) - @echo BR2_LINUX_VERSION=$(BR2_LINUX_VERSION) - @echo BR2_LINUX26_CUSTOM=$(BR2_LINUX26_CUSTOM) - @echo BR2_LINUX26_VERSION=$(BR2_LINUX26_VERSION) - @echo BR2_KERNEL_ADD_LATEST_RC_PATCH=$(BR2_KERNEL_ADD_LATEST_RC_PATCH) - @echo BR2_KERNEL_ADD_LATEST_SNAPSHOT=$(BR2_KERNEL_ADD_LATEST_SNAPSHOT) - @echo BR2_KERNEL_ADD_MINORPATCH=$(BR2_KERNEL_ADD_MINORPATCH) - @echo BR2_KERNEL_ARCH_PATCH_DIR=$(BR2_KERNEL_ARCH_PATCH_DIR) - @echo BR2_KERNEL_GIT_LEVEL=$(BR2_KERNEL_GIT_LEVEL) - @echo BR2_KERNEL_MINORLEVEL=$(BR2_KERNEL_MINORLEVEL) - @echo BR2_KERNEL_PATCH=$(BR2_KERNEL_PATCH) - @echo BR2_KERNEL_PATCH_SITE=$(BR2_KERNEL_PATCH_SITE) - @echo BR2_KERNEL_RC_LEVEL=$(BR2_KERNEL_RC_LEVEL) - @echo BR2_KERNEL_SITE=$(BR2_KERNEL_SITE) - @echo BR2_PACKAGE_LINUX_KCONFIG=$(BR2_PACKAGE_LINUX_KCONFIG) - @echo BR2_PACKAGE_LINUX_USE_DEFCONFIG=$(BR2_PACKAGE_LINUX_USE_DEFCONFIG) - @echo BR2_PACKAGE_LINUX_USE_KCONFIG=$(BR2_PACKAGE_LINUX_USE_KCONFIG) - @echo BR2_PACKAGE_LINUX_USE_XCONFIG=$(BR2_PACKAGE_LINUX_USE_XCONFIG) - @echo DOWNLOAD_LINUX26_VERSION=$(DOWNLOAD_LINUX26_VERSION) - @echo KERNEL_ARCH_PATCH_DIR=$(KERNEL_ARCH_PATCH_DIR) - @echo KERNEL_COND_PATCHES=$(KERNEL_COND_PATCHES) - @echo KERNEL_EXT=$(KERNEL_EXT) - @echo KERNEL_EXTRA_VERSION=$(KERNEL_EXTRA_VERSION) - @echo KERNEL_HEADERS_PATCH_DIR=$(KERNEL_HEADERS_PATCH_DIR) - @echo LINUX_COPYTO=$(LINUX_COPYTO) - @echo LINUX_HEADERS_VERSION=$(LINUX_HEADERS_VERSION) - @echo LINUX26_BINLOC=$(LINUX26_BINLOC) - @echo LINUX26_DIR=$(LINUX26_DIR) - @echo LINUX26_FORMAT=$(LINUX26_FORMAT) - @echo LINUX26_HEADERS_PATCH_DIR=$(LINUX26_HEADERS_PATCH_DIR) - @echo LINUX26_KERNEL=$(LINUX26_KERNEL) - @echo LINUX26_KERNEL_NAME=$(LINUX26_KERNEL_NAME) - @echo LINUX26_LATEST_GIT_PATCH=$(LINUX26_LATEST_GIT_PATCH) - @echo LINUX26_LATEST_RC_PATCH=$(LINUX26_LATEST_RC_PATCH) - @echo LINUX26_PATCH_DIR=$(LINUX26_PATCH_DIR) - @echo LINUX26_SOURCE=$(LINUX26_SOURCE) - @echo LINUX26_TARGETS=$(LINUX26_TARGETS) - @echo LINUX26_VERSION=$(LINUX26_VERSION) - @echo LINUX26_MAKE_FLAGS=$(LINUX26_MAKE_FLAGS) - @echo BUILD_DIR=$(BUILD_DIR) - @echo TARGETS=$(TARGETS) - -endif |