commit ea4a917c47b70842d3568237008ef0cec17d7c57 from: Benjamin Stürz date: Sat Jul 06 10:42:05 2024 UTC add rvforth commit - 92d022a4ae46f0222611e60ca28e2deb4982329a commit + ea4a917c47b70842d3568237008ef0cec17d7c57 blob - c3326d4703bcb9bd1f453052dec51df1db2a7216 blob + 4ca1bf86796fcc3d381387c2eac86373a1238e46 --- tools/Makefile +++ tools/Makefile @@ -18,12 +18,15 @@ MPFR_VER = 4.2.1 MPC_VER = 1.3.1 OKSH_VER = 7.5 DESTRUCT_VER = 0.2 +RVFORTH_VER = 0.1 GMAKE = $U/gmake SUDO = all: build +extra: rvforth oksh + build: ${STAMPS}/libgcc-install ${STAMPS}/destruct-install distclean: clean @@ -81,6 +84,10 @@ src/destruct.tgz: mkdir -p src $U/download $@ https://got.stuerz.xyz/download/destruct-${DESTRUCT_VER}.tgz +src/rvforth.tgz: + mkdir -p src + $U/download $@ https://got.stuerz.xyz/download/rvforth-${RVFORTH_VER}.tgz + # EXTRACT ${STAMPS}/binutils-extract: src/binutils.tgz @@ -142,6 +149,12 @@ ${STAMPS}/destruct: src/destruct.tgz mkdir -p ${STAMPS} tar -C build -xzf src/destruct.tgz mv build/destruct-* build/destruct + touch $@ + +${STAMPS}/rvforth: src/rvforth.tgz + mkdir -p ${STAMPS} + tar -C build -xzf src/rvforth.tgz + mv build/rvforth-* build/rvforth touch $@ # KERNEL HEADERS @@ -288,3 +301,16 @@ clean-destruct: rm -rf build/destruct destruct: ${STAMPS}/destruct-install + +# RVFORTH + +${STAMPS}/rvforth-build: ${STAMPS}/rvforth + (cd ${TOOLS}/build/rvforth && ${MAKE} CC="${PREFIX}/bin/${TARGET}-gcc") + touch $@ + +${TOP}/rootfs/bin/rvforth: ${STAMPS}/rvforth-build + mkdir -p ${TOP}/rootfs/bin + (cd ${TOOLS}/build/rvforth && ${MAKE} PREFIX=/ DESTDIR=${TOP}/rootfs install) + + +rvforth: ${TOP}/rootfs/bin/rvforth