Cleanup paths

This commit is contained in:
Toby Jaffey 2025-12-11 20:35:39 +00:00
parent f27ed6213c
commit 42cd77a9ff
16 changed files with 16 additions and 16 deletions

View file

@ -1,4 +1,4 @@
TOPDIR=../../ TOPDIR=../..
PROJECT:=$(shell basename ${PWD}) PROJECT:=$(shell basename ${PWD})
SRCS=${PROJECT}.c ${TOPDIR}/apps/crt0.S SRCS=${PROJECT}.c ${TOPDIR}/apps/crt0.S
all: all_common all: all_common

View file

@ -1,4 +1,4 @@
TOPDIR=../../ TOPDIR=../..
PROJECT:=$(shell basename ${PWD}) PROJECT:=$(shell basename ${PWD})
SRCS=${PROJECT}.c ${TOPDIR}/apps/crt0.S SRCS=${PROJECT}.c ${TOPDIR}/apps/crt0.S
all: all_common all: all_common

View file

@ -1,4 +1,4 @@
TOPDIR=../../ TOPDIR=../..
PROJECT:=hello-asm PROJECT:=hello-asm
SRCS=${PROJECT}.S SRCS=${PROJECT}.S
all: all_common all: all_common

View file

@ -1,4 +1,4 @@
TOPDIR=../../ TOPDIR=../..
PROJECT:=$(shell basename ${PWD}) PROJECT:=$(shell basename ${PWD})
SRCS=${PROJECT}.c ${TOPDIR}/apps/crt0.S SRCS=${PROJECT}.c ${TOPDIR}/apps/crt0.S
all: all_common all: all_common

View file

@ -1,4 +1,4 @@
TOPDIR=../../ TOPDIR=../..
PROJECT:=$(shell basename ${PWD}) PROJECT:=$(shell basename ${PWD})
SRCS=${PROJECT}.c ${TOPDIR}/apps/crt0.S SRCS=${PROJECT}.c ${TOPDIR}/apps/crt0.S
all: all_common all: all_common

View file

@ -1,4 +1,4 @@
TOPDIR=../../ TOPDIR=../..
PROJECT:=$(shell basename ${PWD}) PROJECT:=$(shell basename ${PWD})
SRCS=${PROJECT}.c ${TOPDIR}/apps/crt0.S SRCS=${PROJECT}.c ${TOPDIR}/apps/crt0.S
OPT=-O2 OPT=-O2

View file

@ -1,4 +1,4 @@
TOPDIR=../../ TOPDIR=../..
PROJECT:=$(shell basename ${PWD}) PROJECT:=$(shell basename ${PWD})
HEAP_SIZE=$(shell echo "1024 * 1024 * 32" | bc) HEAP_SIZE=$(shell echo "1024 * 1024 * 32" | bc)

View file

@ -1,5 +1,5 @@
PROJECT=rust-hello PROJECT=rust-hello
TOPDIR=../../ TOPDIR=../..
all: all:
cargo build -r --target riscv32im-unknown-none-elf && ${PREFIX}objcopy target/riscv32im-unknown-none-elf/release/${PROJECT} -O binary ${PROJECT}.bin cargo build -r --target riscv32im-unknown-none-elf && ${PREFIX}objcopy target/riscv32im-unknown-none-elf/release/${PROJECT} -O binary ${PROJECT}.bin

View file

@ -1,4 +1,4 @@
TOPDIR=../../ TOPDIR=../..
PROJECT:=$(shell basename ${PWD}) PROJECT:=$(shell basename ${PWD})
SRCS=${PROJECT}.c ${TOPDIR}/apps/crt0.S ${TOPDIR}/uvm32/uvm32.c SRCS=${PROJECT}.c ${TOPDIR}/apps/crt0.S ${TOPDIR}/uvm32/uvm32.c
CFLAGS=-DUVM32_MEMORY_SIZE=8192 -DCUSTOM_STDLIB_H=\"uvm32_target.h\" -I../../uvm32 CFLAGS=-DUVM32_MEMORY_SIZE=8192 -DCUSTOM_STDLIB_H=\"uvm32_target.h\" -I../../uvm32

View file

@ -1,4 +1,4 @@
TOPDIR=../../ TOPDIR=../..
PROJECT:=$(shell basename ${PWD}) PROJECT:=$(shell basename ${PWD})
SRCS=${PROJECT}.c ${TOPDIR}/apps/crt0.S SRCS=${PROJECT}.c ${TOPDIR}/apps/crt0.S
all: all_common all: all_common

View file

@ -1,5 +1,5 @@
PROJECT=mandel PROJECT=mandel
TOPDIR=../../ TOPDIR=../..
all: all:
@# zig's objcopy is broken, so use external tool @# zig's objcopy is broken, so use external tool

View file

@ -1,5 +1,5 @@
PROJECT=zigtris PROJECT=zigtris
TOPDIR=../../ TOPDIR=../..
all: all:
@# zig's objcopy is broken, so use external tool @# zig's objcopy is broken, so use external tool

View file

@ -1,4 +1,4 @@
TOPDIR=../../ TOPDIR=../..
# Auto-generate the Arduino example # Auto-generate the Arduino example
# Arduino cannot set -DUVM32_MEMORY_SIZE, so add a config file # Arduino cannot set -DUVM32_MEMORY_SIZE, so add a config file

View file

@ -1,4 +1,4 @@
TOPDIR=../../ TOPDIR=../..
all: all:
xxd -n mandel -i ${TOPDIR}/precompiled/mandel.bin | sed -e "s/unsigned char/const unsigned char/" > mandel.h xxd -n mandel -i ${TOPDIR}/precompiled/mandel.bin | sed -e "s/unsigned char/const unsigned char/" > mandel.h

View file

@ -1,4 +1,4 @@
TOPDIR = ../../ TOPDIR = ../..
all: all:
xxd -n fib -i ${TOPDIR}/precompiled/fib.bin | sed -e "s/unsigned char/const unsigned char/" > fib.h xxd -n fib -i ${TOPDIR}/precompiled/fib.bin | sed -e "s/unsigned char/const unsigned char/" > fib.h
gcc -Wall -DUVM32_MEMORY_SIZE=16386 -I${TOPDIR}/uvm32 -I${TOPDIR}/common -o host-parallel ${TOPDIR}/uvm32/uvm32.c host-parallel.c gcc -Wall -DUVM32_MEMORY_SIZE=16386 -I${TOPDIR}/uvm32 -I${TOPDIR}/common -o host-parallel ${TOPDIR}/uvm32/uvm32.c host-parallel.c

View file

@ -1,4 +1,4 @@
TOPDIR=../../ TOPDIR=../..
all: all:
gcc -Wall -Werror -pedantic -std=c99 -O2 -DUVM32_MEMORY_SIZE=65536 -I${TOPDIR}/uvm32 -I${TOPDIR}/common -o host ${TOPDIR}/uvm32/uvm32.c host.c gcc -Wall -Werror -pedantic -std=c99 -O2 -DUVM32_MEMORY_SIZE=65536 -I${TOPDIR}/uvm32 -I${TOPDIR}/common -o host ${TOPDIR}/uvm32/uvm32.c host.c