1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

Add a toggle for ramdisk support

git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@3030 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
mbm
2006-01-20 18:47:42 +00:00
parent 950f818c91
commit b5ea82a30a
5 changed files with 1498 additions and 4 deletions

View File

@@ -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