mirror of
https://github.com/vivier/EMILE.git
synced 2025-01-02 21:30:29 +00:00
remove BASE_ADDRESS as we have relocatable code now. Size provided in first seems to be total size = offsetof(second) + sizeof(second) = sizeof(floppy.img)
This commit is contained in:
parent
e8caeccc6b
commit
e186742546
15
Makefile
15
Makefile
@ -24,17 +24,13 @@ KERNEL=vmlinux
|
|||||||
FILE=file -bknL
|
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))
|
||||||
|
|
||||||
# base address
|
|
||||||
|
|
||||||
BASE_ADDRESS = 0x00200000
|
|
||||||
|
|
||||||
all: floppy.img
|
all: floppy.img
|
||||||
|
|
||||||
floppy.img: tools first/first vmlinuz second/second
|
floppy.img: tools first/first vmlinuz second/second
|
||||||
cat first/first > floppy.img.X
|
cat first/first > floppy.img.X
|
||||||
cat second/second >> floppy.img.X
|
cat second/second >> floppy.img.X
|
||||||
#ls -l second/second|awk '{ printf "%d",$$5}'| xargs tools/emile-first-tune -d 1 -o 1024 floppy.img.X -s
|
ls -l floppy.img.X|awk '{ printf "%s",$$5}'| xargs tools/emile-first-tune -d 1 -o 1024 floppy.img.X -s
|
||||||
tools/emile-first-tune -d 1 -o 1024 floppy.img.X -s 1473536
|
@#tools/emile-first-tune -d 1 -o 1024 floppy.img.X -s 1473536
|
||||||
mv floppy.img.X floppy.img
|
mv floppy.img.X floppy.img
|
||||||
|
|
||||||
vmlinux.bin: $(KERNEL)
|
vmlinux.bin: $(KERNEL)
|
||||||
@ -46,19 +42,18 @@ vmlinuz: vmlinux.bin
|
|||||||
mv vmlinuz.out.gz vmlinuz
|
mv vmlinuz.out.gz vmlinuz
|
||||||
|
|
||||||
first/first::
|
first/first::
|
||||||
$(MAKE) -C first OBJCOPY=$(OBJCOPY) LD=$(LD) CC=$(CC) AS=$(AS) \
|
$(MAKE) -C first OBJCOPY=$(OBJCOPY) LD=$(LD) CC=$(CC) AS=$(AS)
|
||||||
BASE_ADDRESS=$(BASE_ADDRESS)
|
|
||||||
|
|
||||||
second/second::
|
second/second::
|
||||||
$(MAKE) -C second OBJCOPY=$(OBJCOPY) LD=$(LD) CC=$(CC) AS=$(AS) \
|
$(MAKE) -C second OBJCOPY=$(OBJCOPY) LD=$(LD) CC=$(CC) AS=$(AS) \
|
||||||
BASE_ADDRESS=$(BASE_ADDRESS) VERSION=$(VERSION) \
|
VERSION=$(VERSION) KERNEL_ARCH=$(KERNEL_ARCH)
|
||||||
KERNEL_ARCH=$(KERNEL_ARCH)
|
|
||||||
|
|
||||||
tools::
|
tools::
|
||||||
$(MAKE) -C tools all
|
$(MAKE) -C tools all
|
||||||
|
|
||||||
|
|
||||||
dump: floppy.img
|
dump: floppy.img
|
||||||
|
tools/emile-set-cmdline floppy.img "root=/dev/nfs ip=dhcp nfsroot=192.168.100.1:/mnt/usb-storage/nfsroot"
|
||||||
dd if=floppy.img of=/dev/fd0 bs=512
|
dd if=floppy.img of=/dev/fd0 bs=512
|
||||||
eject /dev/fd0
|
eject /dev/fd0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user