Skip to content

Commit 1717f82

Browse files
anuejnrroohhh
authored andcommitted
software: add prng to builds
1 parent 5aeb9d4 commit 1717f82

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ peripherals/soc_main/vhdl_ls.toml
1919
BERTL/
2020

2121
software/memtool/memtool
22+
software/prng/prng
2223
software/processing_tools/lut_conf/lut_conf
2324
software/processing_tools/mimg/mimg
2425
software/sensor_tools/hist/hist

makefiles/in_chroot/install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ mkdir -p /usr/axiom/bin/
6969
for dir in $(ls -d software/sensor_tools/*/); do cdmake "$dir"; done
7070
for dir in $(ls -d software/processing_tools/*/); do cdmake "$dir"; done
7171
cdmake software/memtool
72+
cdmake software/prng
7273

7374
mkdir -p /usr/axiom/script/
7475
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

software/prng/Makefile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
2+
.SUFFIXES: .c .o .asm .hex .bin
3+
4+
TARGETS = prng
5+
6+
all : $(TARGETS)
7+
8+
CC = gcc
9+
STRIP = strip
10+
CFLAGS += -Wall -std=gnu99 -O3
11+
12+
install:
13+
$(STRIP) $(TARGETS)
14+
for TARGET in $(TARGETS); do ln -sf $$(pwd)/$$TARGET /usr/bin/$$TARGET; chmod u+s $$TARGET; done
15+
16+
clean:
17+
rm -f *.o
18+
rm -f $(TARGETS)
19+
rm -f *~ *.orig

0 commit comments

Comments
 (0)