-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Henrik Karlsson
committed
Oct 27, 2023
1 parent
86d9229
commit 05717a4
Showing
22 changed files
with
176 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,42 @@ | ||
.POSIX: | ||
export PLATFORM?=qemu_virt | ||
export ROOT=${abspath ../..} | ||
export BUILD=${abspath build} | ||
export S3K_CONF_H=${abspath s3k_conf.h} | ||
|
||
include ${ROOT}/common/plat/${PLATFORM}.mk | ||
|
||
APPS=app0 app1 | ||
APPS=boot app0 app1 monitor crypto uartppp | ||
|
||
ELFS=${patsubst %, ${BUILD}/%.elf, kernel ${APPS}} | ||
ELFS=${patsubst %,${BUILD}/%.elf,kernel boot} | ||
|
||
all: kernel ${APPS} | ||
|
||
clean: | ||
${MAKE} -C ${ROOT}/common clean | ||
${MAKE} -C ${ROOT}/kernel clean | ||
for prog in ${APPS}; do \ | ||
@${MAKE} -C ${ROOT}/common clean | ||
@${MAKE} -C ${ROOT}/kernel clean | ||
@for prog in ${APPS}; do \ | ||
${MAKE} -f build.mk PROGRAM=$$prog clean; \ | ||
done | ||
|
||
common: | ||
${MAKE} -C ${ROOT}/common | ||
@${MAKE} -C ${ROOT}/common | ||
|
||
kernel: common | ||
${MAKE} -C ${ROOT}/kernel | ||
@${MAKE} -C ${ROOT}/kernel | ||
|
||
boot: monitor crypto uartppp | ||
${APPS}: | ||
@${MAKE} -f build.mk PROGRAM=$@ | ||
|
||
qemu: kernel ${APPS} | ||
ELFS="${ELFS}" ${ROOT}/scripts/qemu.sh | ||
@ELFS="${ELFS}" ${ROOT}/scripts/qemu.sh -serial tcp:localhost:8888,server,nowait | ||
|
||
qemu-gdb: kernel ${APPS} | ||
ELFS="${ELFS}" ${ROOT}/scripts/qemu.sh -s -S | ||
@ELFS="${ELFS}" ${ROOT}/scripts/qemu.sh -serial tcp:localhost:8888,server,nowait -gdb tcp::3333 -S | ||
|
||
gdb: kernel ${APPS} | ||
ELFS="${ELFS}" ${ROOT}/scripts/gdb.sh | ||
@ELFS="${ELFS}" ${ROOT}/scripts/gdb.sh | ||
|
||
${APPS}: common | ||
${MAKE} -f build.mk PROGRAM=$@ | ||
|
||
.PHONY: all clean qemu kernel common ${APPS} | ||
.PHONY: all clean qemu qemu-gdb gdb kernel common ${APPS} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.