mirror of
https://github.com/vivier/EMILE.git
synced 2024-10-10 16:23:42 +00:00
Correct ramdisk management
This commit is contained in:
parent
5430f75fb4
commit
8c80180a73
8
Makefile
8
Makefile
@ -25,23 +25,25 @@ FILE=file -bknL
|
|||||||
KERNEL_ARCH=$(filter Motorola PowerPC, $(shell $(FILE) $(KERNEL) | cut -d"," -f 2))
|
KERNEL_ARCH=$(filter Motorola PowerPC, $(shell $(FILE) $(KERNEL) | cut -d"," -f 2))
|
||||||
KERNEL_SIZE=$(shell ls -l $(KERNEL) | awk '{print $$5}')
|
KERNEL_SIZE=$(shell ls -l $(KERNEL) | awk '{print $$5}')
|
||||||
|
|
||||||
RAMDISK=$(basename $(shell ls ramdisk 2> /dev/null))
|
RAMDISK=$(shell ls ramdisk.gz 2> /dev/null)
|
||||||
|
|
||||||
all: floppy.img
|
all: floppy.img
|
||||||
|
|
||||||
floppy.img: tools first/first vmlinuz second/second $(RAMDISK)
|
floppy.img: tools first/first vmlinuz second/second $(RAMDISK)
|
||||||
ifeq ($(RAMDISK),ramdisk)
|
ifeq ($(RAMDISK),ramdisk.gz)
|
||||||
tools/emile-install -f first/first -s second/second \
|
tools/emile-install -f first/first -s second/second \
|
||||||
-i vmlinuz -b $(KERNEL_SIZE) \
|
-i vmlinuz -b $(KERNEL_SIZE) \
|
||||||
-r $(RAMDISK) \
|
-r $(RAMDISK) \
|
||||||
floppy.img.X
|
floppy.img.X
|
||||||
|
tools/emile-set-cmdline floppy.img.X \
|
||||||
|
"root=/dev/ramdisk ramdisk_size=2048"
|
||||||
else
|
else
|
||||||
tools/emile-install -f first/first -s second/second \
|
tools/emile-install -f first/first -s second/second \
|
||||||
-i vmlinuz -b $(KERNEL_SIZE) \
|
-i vmlinuz -b $(KERNEL_SIZE) \
|
||||||
floppy.img.X
|
floppy.img.X
|
||||||
endif
|
|
||||||
tools/emile-set-cmdline floppy.img.X \
|
tools/emile-set-cmdline floppy.img.X \
|
||||||
"root=/dev/nfs ip=dhcp nfsroot=192.168.100.1:/mnt/usb-storage/nfsroot"
|
"root=/dev/nfs ip=dhcp nfsroot=192.168.100.1:/mnt/usb-storage/nfsroot"
|
||||||
|
endif
|
||||||
mv floppy.img.X floppy.img
|
mv floppy.img.X floppy.img
|
||||||
|
|
||||||
vmlinux.bin: $(KERNEL)
|
vmlinux.bin: $(KERNEL)
|
||||||
|
Loading…
Reference in New Issue
Block a user