diff options
author | Roman Yeryomin <roman@advem.lv> | 2012-09-13 00:26:51 +0300 |
---|---|---|
committer | Roman Yeryomin <roman@advem.lv> | 2012-09-13 00:26:51 +0300 |
commit | 4985302f52deaeac1a718f81c3aa1418cf74b14c (patch) | |
tree | 3fe1f0ae5e209b1d6a9d35a4ba4e1f84ba8c7c2e | |
parent | 7d57bd2be1ab2bd45c216d019e1fe31be6cd6663 (diff) |
lexra platform support for build system
Signed-off-by: Roman Yeryomin <roman@advem.lv>
-rw-r--r-- | Config.in | 3 | ||||
-rw-r--r-- | include/kernel-defaults.mk | 6 | ||||
-rw-r--r-- | include/kernel.mk | 2 | ||||
-rw-r--r-- | include/target.mk | 5 | ||||
-rwxr-xr-x | scripts/config.sub | 4 | ||||
-rw-r--r-- | target/Config.in | 5 | ||||
-rw-r--r-- | toolchain/kernel-headers/Makefile | 4 |
7 files changed, 25 insertions, 4 deletions
@@ -445,6 +445,7 @@ menuconfig DEVEL config BUILD_SUFFIX string "Build suffix to append to the BUILD_DIR variable" if DEVEL + default "lexra" if lexra default "" help Build suffix to append to the BUILD_DIR variable, i.e: build_dir_suffix @@ -508,7 +509,7 @@ menuconfig TARGET_OPTIONS config SOFT_FLOAT bool "Use software floating point by default" if TARGET_OPTIONS default y - depends on (arm || armeb || powerpc || mipsel || mips) && !HAS_FPU + depends on (arm || armeb || powerpc || mipsel || mips || lexra) && !HAS_FPU help If your target CPU does not have a Floating Point Unit (FPU) or a kernel FPU emulator, but you still wish to support floating point diff --git a/include/kernel-defaults.mk b/include/kernel-defaults.mk index 5c4ef9f62..3b1086952 100644 --- a/include/kernel-defaults.mk +++ b/include/kernel-defaults.mk @@ -99,6 +99,12 @@ define Kernel/Configure/Default $(LINUX_CONF_CMD) > $(LINUX_DIR)/.config.target # copy CONFIG_KERNEL_* settings over to .config.target awk '/^(#[[:space:]]+)?CONFIG_KERNEL/{sub("CONFIG_KERNEL_","CONFIG_");print}' $(TOPDIR)/.config >> $(LINUX_DIR)/.config.target +ifeq ($(CONFIG_TARGET_realtek),y) + echo "CONFIG_RTL_FLASH_SIZE=${CONFIG_REALTEK_FLASH_SIZE}" >> $(LINUX_DIR)/.config.target + echo "CONFIG_RTL_LINUX_IMAGE_OFFSET=0x${CONFIG_REALTEK_KERNEL_OFFSET}" >> $(LINUX_DIR)/.config.target + echo "CONFIG_RTL_ROOT_IMAGE_OFFSET=0x${CONFIG_REALTEK_ROOTFS_OFFSET}" >> $(LINUX_DIR)/.config.target + echo "CONFIG_RTL_KERNEL_LOAD_ADDRESS=${CONFIG_REALTEK_KERNEL_LOAD_ADDRESS}" >> $(LINUX_DIR)/.config.target +endif echo "# CONFIG_KALLSYMS_EXTRA_PASS is not set" >> $(LINUX_DIR)/.config.target echo "# CONFIG_KALLSYMS_ALL is not set" >> $(LINUX_DIR)/.config.target echo "# CONFIG_KPROBES is not set" >> $(LINUX_DIR)/.config.target diff --git a/include/kernel.mk b/include/kernel.mk index c0d8ef8a2..d154e6bc0 100644 --- a/include/kernel.mk +++ b/include/kernel.mk @@ -68,7 +68,7 @@ ifneq (,$(findstring uml,$(BOARD))) LINUX_KARCH=um else ifeq (,$(LINUX_KARCH)) - LINUX_KARCH=$(strip $(subst i386,x86,$(subst armeb,arm,$(subst mipsel,mips,$(subst mips64,mips,$(subst mips64el,mips,$(subst sh2,sh,$(subst sh3,sh,$(subst sh4,sh,$(ARCH)))))))))) + LINUX_KARCH=$(strip $(subst lexra,rlx,$(subst i386,x86,$(subst armeb,arm,$(subst mipsel,mips,$(subst mips64,mips,$(subst mips64el,mips,$(subst sh2,sh,$(subst sh3,sh,$(subst sh4,sh,$(ARCH))))))))))) endif endif diff --git a/include/target.mk b/include/target.mk index 61cdf0640..b08167326 100644 --- a/include/target.mk +++ b/include/target.mk @@ -107,7 +107,12 @@ ifneq ($(TARGET_BUILD)$(if $(DUMP),,1),) include $(INCLUDE_DIR)/kernel-version.mk endif + GENERIC_PLATFORM_DIR := $(TOPDIR)/target/linux/generic +ifeq ($(CONFIG_TARGET_realtek),y) +# stop any generic kernel patches being applied +GENERIC_PLATFORM_DIR := $(TOPDIR)/target/linux/not-generic +endif GENERIC_PATCH_DIR := $(GENERIC_PLATFORM_DIR)/patches$(if $(wildcard $(GENERIC_PLATFORM_DIR)/patches-$(KERNEL_PATCHVER)),-$(KERNEL_PATCHVER)) GENERIC_FILES_DIR := $(foreach dir,$(wildcard $(GENERIC_PLATFORM_DIR)/files $(GENERIC_PLATFORM_DIR)/files-$(KERNEL_PATCHVER)),"$(dir)") diff --git a/scripts/config.sub b/scripts/config.sub index 204218c07..6add5da93 100755 --- a/scripts/config.sub +++ b/scripts/config.sub @@ -261,7 +261,7 @@ case $basic_machine in | lm32 \ | m32c | m32r | m32rle | m68000 | m68k | m88k \ | maxq | mb | microblaze | mcore | mep | metag \ - | mips | mipsbe | mipseb | mipsel | mipsle \ + | mips | lexra | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ | mips64octeon | mips64octeonel \ @@ -357,7 +357,7 @@ case $basic_machine in | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \ - | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ + | mips-* | lexra-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ | mips64octeon-* | mips64octeonel-* \ diff --git a/target/Config.in b/target/Config.in index cc42ad126..cf762a908 100644 --- a/target/Config.in +++ b/target/Config.in @@ -91,6 +91,10 @@ config i686 config m68k bool +config lexra + select BIG_ENDIAN + bool + config mips select BIG_ENDIAN bool @@ -159,4 +163,5 @@ config ARCH default "sparc" if sparc default "ubicom32" if ubicom32 default "x86_64" if x86_64 + default "mips" if lexra diff --git a/toolchain/kernel-headers/Makefile b/toolchain/kernel-headers/Makefile index 7f0962ef9..866d99068 100644 --- a/toolchain/kernel-headers/Makefile +++ b/toolchain/kernel-headers/Makefile @@ -31,6 +31,10 @@ ifeq ($(strip $(BOARD)),uml) LINUX_KARCH:=$(subst x86_64,x86,$(subst i386,x86,$(ARCH))) endif +ifeq ($(CONFIG_TARGET_realtek),y) +LINUX_KARCH:=$(subst lexra,mips,$(ARCH)) +endif + HOST_EXTRACFLAGS= LINUX_HAS_HEADERS_INSTALL:=y |