summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
Diffstat (limited to 'target')
-rw-r--r--target/Config.in9
-rw-r--r--target/rescue-x86/Makefile18
2 files changed, 25 insertions, 2 deletions
diff --git a/target/Config.in b/target/Config.in
index 1c6211d83..27b16eea6 100644
--- a/target/Config.in
+++ b/target/Config.in
@@ -287,6 +287,7 @@ config ADK_LINUX_XSCALE_ZAURUS
select ADK_zaurus
select ADK_TARGET_NO_FPU
select ADK_TARGET_WITH_INPUT
+ depends on ADK_BROKEN
help
Support for Sharp Zaurus SL-C3200 (aka Terrier)
Status: development
@@ -361,12 +362,14 @@ config ADK_LINUX_X86_RESCUE
config ADK_LINUX_MIPSEL_RESCUE
bool "mips (little endian)"
select ADK_mipsel_rescue
+ depends on ADK_BROKEN
help
MIPS LE architecture.
config ADK_LINUX_MIPS_RESCUE
bool "mips (big endian)"
select ADK_mips_rescue
+ depends on ADK_BROKEN
help
MIPS BE architecture.
@@ -628,7 +631,7 @@ endchoice
choice
prompt "Routerboard model"
-default ADK_LINUX_MIPS_RB433
+default ADK_LINUX_MIPS_RB532
depends on ADK_LINUX_MIKROTIK
config ADK_LINUX_MIPS_RB411
@@ -639,6 +642,7 @@ config ADK_LINUX_MIPS_RB411
select ADK_KERNEL_NETDEV_1000
select ADK_KERNEL_NET_ETHERNET
select ADK_TARGET_WITH_MINIPCI
+ depends on ADK_BROKEN
help
Support for Mikrotik RB411.
Status: development
@@ -651,6 +655,7 @@ config ADK_LINUX_MIPS_RB433
select ADK_KERNEL_NETDEV_1000
select ADK_KERNEL_NET_ETHERNET
select ADK_TARGET_WITH_MINIPCI
+ depends on ADK_BROKEN
help
Support for Mikrotik RB433.
Status: development
@@ -701,7 +706,7 @@ depends on ! ADK_NATIVE
config ADK_TARGET_LIB_UCLIBC
bool "uClibc embedded C library"
# broken, because of 16kB pagesize
- #depends on !ADK_LINUX_MIPS64_LEMOTE
+ depends on !ADK_LINUX_MIPS64_LEMOTE
select ADK_uclibc
help
http://uclibc.org
diff --git a/target/rescue-x86/Makefile b/target/rescue-x86/Makefile
index 81a529d14..0d7d19d48 100644
--- a/target/rescue-x86/Makefile
+++ b/target/rescue-x86/Makefile
@@ -11,9 +11,27 @@ kernel-install:
@cp $(LINUX_DIR)/arch/x86/boot/bzImage \
$(BIN_DIR)/${ADK_TARGET}-${FS}-kernel
+createinit:
+ @-rm $(LINUX_DIR)/usr/initramfs_data.cpio.*
+ $(SED) 's#^CONFIG_INITRAMFS_SOURCE.*#CONFIG_INITRAMFS_SOURCE="${BUILD_DIR}/${INITRAMFS_PIGGYBACK}"#' \
+ $(LINUX_DIR)/.config
+ echo 'CONFIG_INITRAMFS_ROOT_UID=0' >> $(LINUX_DIR)/.config
+ echo 'CONFIG_INITRAMFS_ROOT_GID=0' >> $(LINUX_DIR)/.config
+ echo N |$(MAKE) -C $(LINUX_DIR) V=1 CROSS_COMPILE="$(TARGET_CROSS)" ARCH=$(ARCH) \
+ CC="$(TARGET_CC)" oldconfig $(MAKE_TRACE)
+ $(MAKE) -C $(LINUX_DIR) V=1 CROSS_COMPILE="$(TARGET_CROSS)" ARCH=$(ARCH) \
+ CC="$(TARGET_CC)" $(MAKE_TRACE)
+ @cp $(LINUX_DIR)/arch/x86/boot/bzImage $(BIN_DIR)/${ADK_TARGET}-${FS}-kernel
+
ifeq ($(FS),initramfs)
imageinstall: $(BIN_DIR)/$(INITRAMFS)
@echo 'The kernel file is: ${BIN_DIR}/${ADK_TARGET}-${FS}-kernel'
@echo 'The initramfs image is: ${BIN_DIR}/${INITRAMFS}'
@echo 'Login as user root with password linux123 via ssh or console'
endif
+
+ifeq ($(FS),initramfs-piggyback)
+imageinstall: ${BUILD_DIR}/${INITRAMFS_PIGGYBACK} createinit
+ @echo 'The kernel+initramfs file is: ${BIN_DIR}/${ADK_TARGET}-${FS}-kernel'
+ @echo 'Login as user root with password linux123 via ssh or console'
+endif