Make it easier to change the number of used cores
This commit uses the CORENUM Makefile variable to generate scc_bootinfo.asm. This enables easier use of more than one core.
This commit is contained in:
parent
c19916db0d
commit
5a70cbbd75
1 changed files with 2 additions and 1 deletions
|
@ -8,6 +8,7 @@ DEFINES=
|
||||||
NASM = nasm
|
NASM = nasm
|
||||||
NASMFLAGS = -fbin
|
NASMFLAGS = -fbin
|
||||||
EXECFILES = $(shell find ../newlib/examples -perm -u+r+x -type f)
|
EXECFILES = $(shell find ../newlib/examples -perm -u+r+x -type f)
|
||||||
|
CORENUM ?= 1
|
||||||
|
|
||||||
# other implicit rules
|
# other implicit rules
|
||||||
%.o : %.c
|
%.o : %.c
|
||||||
|
@ -36,7 +37,7 @@ reset_vector.bin: reset_vector.o
|
||||||
ld --oformat binary -Ttext 0 -melf_i386 -o $@ $<
|
ld --oformat binary -Ttext 0 -melf_i386 -o $@ $<
|
||||||
|
|
||||||
scc_bootinfo.asm: bootinfo.sh initrd.img
|
scc_bootinfo.asm: bootinfo.sh initrd.img
|
||||||
./bootinfo.sh 0x01000000 initrd.img 1 533 0 > scc_bootinfo.asm
|
./bootinfo.sh 0x01000000 initrd.img $(CORENUM) 533 `seq 0 $$(($(CORENUM) - 1))` > scc_bootinfo.asm
|
||||||
|
|
||||||
scc_bootinfo.bin: scc_bootinfo.asm
|
scc_bootinfo.bin: scc_bootinfo.asm
|
||||||
$(NASM) $(NASMFLAGS) -o $@ $<
|
$(NASM) $(NASMFLAGS) -o $@ $<
|
||||||
|
|
Loading…
Add table
Reference in a new issue