Skip to content

Commit

Permalink
software: add prng to builds
Browse files Browse the repository at this point in the history
  • Loading branch information
anuejn authored and rroohhh committed Mar 4, 2024
1 parent 5aeb9d4 commit 1717f82
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ peripherals/soc_main/vhdl_ls.toml
BERTL/

software/memtool/memtool
software/prng/prng
software/processing_tools/lut_conf/lut_conf
software/processing_tools/mimg/mimg
software/sensor_tools/hist/hist
Expand Down
1 change: 1 addition & 0 deletions makefiles/in_chroot/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ mkdir -p /usr/axiom/bin/
for dir in $(ls -d software/sensor_tools/*/); do cdmake "$dir"; done
for dir in $(ls -d software/processing_tools/*/); do cdmake "$dir"; done
cdmake software/memtool
cdmake software/prng

mkdir -p /usr/axiom/script/
for script in $(cat <(ls software/scripts) software/scripts/bringup_scripts.list | sort | uniq -u | grep -E '\.sh$|\.py$'); do ln -sf $(pwd)/software/scripts/$script /usr/axiom/script/$script; chmod a+x $(pwd)/software/scripts/$script; done
Expand Down
19 changes: 19 additions & 0 deletions software/prng/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

.SUFFIXES: .c .o .asm .hex .bin

TARGETS = prng

all : $(TARGETS)

CC = gcc
STRIP = strip
CFLAGS += -Wall -std=gnu99 -O3

install:
$(STRIP) $(TARGETS)
for TARGET in $(TARGETS); do ln -sf $$(pwd)/$$TARGET /usr/bin/$$TARGET; chmod u+s $$TARGET; done

clean:
rm -f *.o
rm -f $(TARGETS)
rm -f *~ *.orig

0 comments on commit 1717f82

Please sign in to comment.