mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-01 21:35:55 +02:00
Add a toggle for ramdisk support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@3030 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
73913be8bb
commit
24a42b97de
@ -22,7 +22,7 @@ endmenu
|
||||
|
||||
menu "Kernel Configuration / Device Support"
|
||||
|
||||
comment "Device specific modules"
|
||||
comment "Device specific configuration"
|
||||
|
||||
source "target/linux/*-2.[46]/Config.in"
|
||||
|
||||
|
@ -14,6 +14,10 @@ include ../kernel.mk
|
||||
$(LINUX_DIR)/.patched: $(LINUX_DIR)/.unpacked
|
||||
[ -d ../generic-$(KERNEL)/patches ] && $(PATCH) $(LINUX_DIR) ../generic-$(KERNEL)/patches $(MAKE_TRACE)
|
||||
[ -d ./patches ] && $(PATCH) $(LINUX_DIR) ./patches $(MAKE_TRACE)
|
||||
ifeq ($(BR2_ARUBA_RAMDISK),y)
|
||||
@cp config-ramdisk $(LINUX_DIR)/.config
|
||||
else
|
||||
@cp config $(LINUX_DIR)/.config
|
||||
endif
|
||||
touch $@
|
||||
|
||||
|
@ -157,9 +157,7 @@ CONFIG_SYSCTL=y
|
||||
CONFIG_HOTPLUG=y
|
||||
CONFIG_KOBJECT_UEVENT=y
|
||||
# CONFIG_IKCONFIG is not set
|
||||
CONFIG_INITRAMFS_SOURCE="../root"
|
||||
CONFIG_INITRAMFS_ROOT_UID=0
|
||||
CONFIG_INITRAMFS_ROOT_GID=0
|
||||
CONFIG_INITRAMFS_SOURCE=""
|
||||
CONFIG_CC_OPTIMIZE_FOR_SIZE=y
|
||||
CONFIG_EMBEDDED=y
|
||||
# CONFIG_KALLSYMS is not set
|
||||
|
1482
openwrt/target/linux/aruba-2.6/config-ramdisk
Normal file
1482
openwrt/target/linux/aruba-2.6/config-ramdisk
Normal file
File diff suppressed because it is too large
Load Diff
@ -26,6 +26,16 @@ ifeq ($(FS),jffs2-4MB)
|
||||
$(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL).ari: $(KDIR)/loader.elf
|
||||
./addVersion -n ArubaOS $(KDIR)/loader.elf $@ version
|
||||
|
||||
ifneq ($(BR2_ARUBA_RAMDISK),y)
|
||||
$(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(FSNAME).bin: $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL).ari $(KDIR)/root.$(FS)
|
||||
@dd if=$< of=$@.tmp bs=655360 conv=sync
|
||||
@cat $(KDIR)/root.$(FS) >> $@.tmp
|
||||
@dd if=$@.tmp of=$@ bs=3604480 conv=sync
|
||||
@rm -f $@.tmp
|
||||
|
||||
install: $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(FSNAME).bin
|
||||
endif
|
||||
|
||||
install: $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL).ari
|
||||
endif
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user