summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Config.in3
-rw-r--r--include/kernel-defaults.mk6
-rw-r--r--include/kernel.mk2
-rw-r--r--include/target.mk5
-rwxr-xr-xscripts/config.sub4
-rw-r--r--target/Config.in5
-rw-r--r--toolchain/kernel-headers/Makefile4
7 files changed, 25 insertions, 4 deletions
diff --git a/Config.in b/Config.in
index b79a26e87..89791cd4d 100644
--- a/Config.in
+++ b/Config.in
@@ -770,6 +770,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
@@ -833,7 +834,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 || mips64el || mips64) && !HAS_FPU
+ depends on (arm || armeb || powerpc || mipsel || mips || mips64el || mips64 || 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 9a4dd90ed..043b56865 100644
--- a/include/kernel-defaults.mk
+++ b/include/kernel-defaults.mk
@@ -94,6 +94,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_KALLSYMS_UNCOMPRESSED is not set" >> $(LINUX_DIR)/.config.target
diff --git a/include/kernel.mk b/include/kernel.mk
index b637de591..fc0d3d349 100644
--- a/include/kernel.mk
+++ b/include/kernel.mk
@@ -66,7 +66,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 6774076f9..9b2e2401a 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 df65a9220..4c483bcd7 100755
--- a/scripts/config.sub
+++ b/scripts/config.sub
@@ -262,7 +262,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 947e80ca4..cf66fae6f 100644
--- a/target/Config.in
+++ b/target/Config.in
@@ -110,6 +110,10 @@ config i686
config m68k
bool
+config lexra
+ select BIG_ENDIAN
+ bool
+
config mips
select BIG_ENDIAN
bool
@@ -177,4 +181,5 @@ config ARCH
default "sh4eb" if sh4eb
default "sparc" if sparc
default "x86_64" if x86_64
+ default "mips" if lexra
diff --git a/toolchain/kernel-headers/Makefile b/toolchain/kernel-headers/Makefile
index 9427f82c7..a74a6c234 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