mirror of
https://github.com/vivier/EMILE.git
synced 2025-01-02 21:30:29 +00:00
allow to build EMILE without vmlinux
This commit is contained in:
parent
a59b49fa18
commit
c0ae22c56f
14
Makefile
14
Makefile
@ -55,8 +55,11 @@ PPC_OBJCOPY=$(PPC_CROSS_COMPILE)objcopy
|
|||||||
|
|
||||||
# Kernel architecture
|
# Kernel architecture
|
||||||
|
|
||||||
KERNEL=vmlinux
|
KERNELPATH=vmlinux
|
||||||
|
|
||||||
|
KERNEL=$(shell ls $(KERNELPATH) 2> /dev/null)
|
||||||
|
|
||||||
|
ifeq ($(KERNEL),$(KERNELPATH))
|
||||||
FILEARCH=$(shell file -bknL $(KERNEL) | cut -d, -f 2)
|
FILEARCH=$(shell file -bknL $(KERNEL) | cut -d, -f 2)
|
||||||
ifeq ($(findstring PowerPC, $(FILEARCH)), PowerPC)
|
ifeq ($(findstring PowerPC, $(FILEARCH)), PowerPC)
|
||||||
KARCH=ppc
|
KARCH=ppc
|
||||||
@ -67,12 +70,20 @@ else
|
|||||||
KARCH=unknown
|
KARCH=unknown
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
else
|
||||||
|
KARCH=m68k
|
||||||
|
endif
|
||||||
|
|
||||||
# Target
|
# Target
|
||||||
|
|
||||||
all: libemile tools first/first_floppy second/$(KARCH)-second_floppy \
|
all: libemile tools first/first_floppy second/$(KARCH)-second_floppy \
|
||||||
second/$(KARCH)-second_scsi
|
second/$(KARCH)-second_scsi
|
||||||
|
|
||||||
|
# We can build floppy image only if a kernel is provided
|
||||||
|
|
||||||
|
ifeq ($(KERNEL),$(KERNELPATH))
|
||||||
|
all_bin: netboot.bin rescue.bin debian-installer.bin boot.bin
|
||||||
|
|
||||||
floppy.bin: libemile tools first/first_floppy vmlinuz \
|
floppy.bin: libemile tools first/first_floppy vmlinuz \
|
||||||
second/$(KARCH)-second_floppy
|
second/$(KARCH)-second_floppy
|
||||||
tools/emile-install -f first/first_floppy \
|
tools/emile-install -f first/first_floppy \
|
||||||
@ -128,6 +139,7 @@ vmlinuz: vmlinux.bin
|
|||||||
cp vmlinux.bin vmlinuz.out
|
cp vmlinux.bin vmlinuz.out
|
||||||
gzip -9 vmlinuz.out
|
gzip -9 vmlinuz.out
|
||||||
mv vmlinuz.out.gz vmlinuz
|
mv vmlinuz.out.gz vmlinuz
|
||||||
|
endif
|
||||||
|
|
||||||
first/first_floppy::
|
first/first_floppy::
|
||||||
$(MAKE) -C first OBJCOPY=$(M68K_OBJCOPY) LD=$(M68K_LD) CC=$(M68K_CC) AS=$(M68K_AS) SIGNATURE="$(SIGNATURE)"
|
$(MAKE) -C first OBJCOPY=$(M68K_OBJCOPY) LD=$(M68K_LD) CC=$(M68K_CC) AS=$(M68K_AS) SIGNATURE="$(SIGNATURE)"
|
||||||
|
Loading…
Reference in New Issue
Block a user