File tree Expand file tree Collapse file tree 7 files changed +27
-40
lines changed Expand file tree Collapse file tree 7 files changed +27
-40
lines changed Original file line number Diff line number Diff line change 77 - build
88 - stable
99 - master
10+ - kobo
1011
1112jobs :
1213 pre-release :
1920
2021
2122 - name : " Build artifacts"
22- run : make docker
23+ run : |
24+ ARCH=arm make docker
25+ ARCH=kobo make docker
2326
2427 - name : " Declare vars"
2528 id : vars
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11FROM ghcr.io/toltec-dev/python:v1.1
22
3- RUN echo ""
3+ RUN echo "1 "
44RUN pip3 install okp
55
66WORKDIR /rmkit
Original file line number Diff line number Diff line change 11# !/usr/bin/env bash
2+
23default : build
34include src/common.make
45
@@ -76,8 +77,13 @@ docker_test:
7677docker_install : docker
7778 echo " Not implemented yet"
7879
80+ # STRIP_BIN is always arm-linux-gnueabihf-strip for now
81+ strip : SHELL:=/bin/bash
82+ strip :
83+ cd ${BUILD_DIR} ; export GLOBIGNORE=" *.o:*.h:*.sh" ; ${STRIP_BIN} *
84+
7985ZIP_DEST ="apps"
80- bundle : $( APPS )
86+ bundle :
8187 # BUILDING V: ${VERSION} ARCH: ${ARCH}
8288 mkdir -p ${BUILD_DIR} /.${ZIP_DEST} 2> /dev/null || true
8389 cp ${BUILD_DIR} /* ${BUILD_DIR} /.${ZIP_DEST} /
Original file line number Diff line number Diff line change 11OUTDIR=artifacts
22PACKAGE=" ${1} "
3+ ARCH=${ARCH:- arm}
34mkdir ${OUTDIR}
45docker run -i --rm -v " ${PWD} /${OUTDIR} :/mnt/artifacts" rmkit /bin/bash << COMMANDS
56mkdir -p src/build
6- make ${PACKAGE}
7- mkdir -p /mnt/artifacts/files /
8- cp -r src/build/* /mnt/artifacts/files /
7+ ARCH= ${ARCH} make ${PACKAGE}
8+ mkdir -p /mnt/artifacts/${ARCH} /
9+ cp -r src/build/* /mnt/artifacts/${ARCH} /
910chown -R $( id -u) :$( id -u) /mnt/artifacts
1011COMMANDS
1112
Original file line number Diff line number Diff line change 11OUTDIR=artifacts
2+ ARCH=${ARCH:- arm}
23mkdir ${OUTDIR}
34docker run -i --rm -v " ${PWD} /${OUTDIR} :/mnt/artifacts" rmkit /bin/bash << COMMANDS
45mkdir -p src/build
5- make
6- make bundle
7- mkdir -p /mnt/artifacts/files/
8- cp -r src/build/* /mnt/artifacts/files/
9- rm /mnt/artifacts/files/stb.*
10- rm /mnt/artifacts/files/release.*
11- cp -r src/build/release.* /mnt/artifacts
6+ ARCH=${ARCH} make
7+ ARCH=${ARCH} make strip
8+ ARCH=${ARCH} make bundle
9+ mkdir -p /mnt/artifacts/${ARCH} /
10+ cp -r src/build/* /mnt/artifacts/${ARCH} /
11+ rm /mnt/artifacts/${ARCH} /stb.*
12+ rm /mnt/artifacts/${ARCH} /release.*
13+ cp -r src/build/release.* /mnt/artifacts/${ARCH} /
1214chown -R $( id -u) :$( id -u) /mnt/artifacts
1315COMMANDS
1416
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ HOST?=10.11.99.1
22ARCH? =arm
33CXX_BIN? =arm-linux-gnueabihf-g++
44CC_BIN? =arm-linux-gnueabihf-gcc
5+ STRIP_BIN? =arm-linux-gnueabihf-strip
56CPP_FLAGS =-pthread -lpthread -fdata-sections -ffunction-sections -Wl,--gc-sections
67
78# BUILD STUFF
@@ -16,6 +17,6 @@ RMKIT_IMPL="RMKIT_IMPLEMENTATION"
1617OKP_FLAGS =-ig ${RMKIT_IMPL} -ns -ni -for -d ../.${APP}_cpp/ -o ../build/${EXE} ${FILES}
1718
1819# installation directory on remarkable
19- DEST =/opt/bin/
20+ DEST? =/opt/bin/
2021
2122# vim: syntax=make
You can’t perform that action at this time.
0 commit comments