Skip to content

Commit

Permalink
cmoc-os9: Add 001-Edit-lib-Makefile.patch to
Browse files Browse the repository at this point in the history
skip building floating point code
  • Loading branch information
stahta01 committed Apr 9, 2024
1 parent 4dc21e3 commit 57c4117
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
26 changes: 26 additions & 0 deletions cmoc-os9/001-Edit-lib-Makefile.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
From ea0ad42c7cbd01df1bf65ba83c026dcd59ad7b15 Mon Sep 17 00:00:00 2001
From: Tim Stahlhut <[email protected]>
Date: Tue, 9 Apr 2024 16:23:43 -0400
Subject: Edit lib/Makefile

---
lib/Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/Makefile b/lib/Makefile
index 120fbdd..2a46964 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -6,7 +6,8 @@ STRING = strlen.o strcmp.o strpbrk.o strtok.o strspn.o patmatch.o strucmp.o \
MEM = mem.o memory.o memchr.o memccpy.o memcmp.o memset.o memcpy.o memchr.o \
memncmp.o
SYS = sleep.o
-IO = printf.o pffinit.o pflinit.o pfldummy.o putc.o puts.o iob_data.o setbase.o fseek.o fopen.o
+HIGH_IO = printf.o pffinit.o pflinit.o pfldummy.o
+IO = putc.o puts.o iob_data.o setbase.o fseek.o fopen.o
LOW_IO = access.o create.o open.o read.o write.o
MISC = rpterr.o chcodes.o htoi.o htol.o rand.o prof.o
MATH_SUPPORT = ccmult.o ccdiv.o ccmod.o atoi.o abs.o
--
2.44.0

11 changes: 9 additions & 2 deletions cmoc-os9/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,21 @@ groups=("${_target}-toolchain")
makedepends=('git' 'cmoc')
options=('!strip')
install=
source=('git+https://github.com/tlindner/cmoc_os9.git')
sha256sums=('SKIP')
source=('git+https://github.com/tlindner/cmoc_os9.git'
'001-Edit-lib-Makefile.patch')
sha256sums=('SKIP'
'e4dc2a8c3aab6bd11726d069ffada034128c139af0ae49329e3f990d1a2df2bf')

pkgver() {
cd "$srcdir/${_realname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
cd "$srcdir/${_realname}"
patch --forward -p1 -i ${srcdir}/001-Edit-lib-Makefile.patch
}

build() {
cd "$srcdir/${_realname}"
make -C lib clean
Expand Down

0 comments on commit 57c4117

Please sign in to comment.