File tree Expand file tree Collapse file tree 7 files changed +424
-6
lines changed Expand file tree Collapse file tree 7 files changed +424
-6
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on : [push]
4
+
5
+ jobs :
6
+ test :
7
+ runs-on : ubuntu-latest
8
+ name : CI 14.2
9
+ env :
10
+ BRANCH : releng/14.2
11
+ CONFIG : ci/configs/config_i386.sh
12
+ steps :
13
+ - uses : actions/checkout@v4
14
+ - name : CI
15
+ id : ci
16
+ uses : vmactions/freebsd-vm@v1
17
+ with :
18
+ envs : ' BRANCH CONFIG'
19
+ usesh : true
20
+ sync : rsync
21
+ copyback : true
22
+ prepare : |
23
+ pkg install -y sudo
24
+
25
+ run : |
26
+ sh ci/build_14.2_i386.sh
27
+
28
+ - uses : actions/upload-artifact@v4
29
+ with :
30
+ name : logs
31
+ path : /home/runner/work/crochet-freebsd/crochet-freebsd/work/*.log
32
+ overwrite : true
33
+
34
+ - uses : actions/upload-artifact@v4
35
+ with :
36
+ name : image
37
+ path : /home/runner/work/crochet-freebsd/crochet-freebsd/work/*.img
38
+ overwrite : true
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ generic_i386_partition_image ( ) {
12
12
13
13
# TODO: This is broken; should use 'make install' to copy
14
14
# bootfiles to workdir, then install to disk image from there.
15
- BOOTFILES=${FREEBSD_OBJDIR} /stand/i386
15
+ BOOTFILES=${FREEBSD_OBJDIR} /i386.i386/ stand/i386
16
16
echo " Boot files are at: " ${BOOTFILES}
17
17
gpart bootcode -b ${BOOTFILES} /mbr/mbr ${DISK_MD} || exit 1
18
18
gpart set -a active -i 1 ${DISK_MD} || exit 1
Original file line number Diff line number Diff line change 3
3
#
4
4
5
5
mkimage_python_check ( ) {
6
- if python --version > /dev/null 2>&1 ; then
6
+ if python3 --version > /dev/null 2>&1 ; then
7
7
true
8
8
else
9
9
echo " Need Python to run RaspberryPi mkimage tool"
@@ -22,12 +22,12 @@ strategy_add $PHASE_CHECK mkimage_python_check
22
22
# $2: output
23
23
mkimage ( ) {
24
24
if [ ${VERBOSE} -gt 0 ]; then
25
- echo " python imagetool-uncompressed.py $1 - > $2 "
25
+ echo " python3 imagetool-uncompressed.py $1 - > $2 "
26
26
fi
27
27
# parens here ensure paths are interpreted relative to the
28
28
# appropriate current directory
29
29
(
30
30
cd ${BOARDDIR} /mkimage
31
- python imagetool-uncompressed.py $1 -
31
+ python3 imagetool-uncompressed.py $1 -
32
32
) > $2
33
33
}
Original file line number Diff line number Diff line change 1
1
KERNCONF=RPI-B
2
2
RPI_UBOOT_PORT=" u-boot-rpi"
3
- RPI_UBOOT_BIN=" u-boot.img "
3
+ RPI_UBOOT_BIN=" u-boot.bin "
4
4
RPI_FIRMWARE_SRC=/usr/local/share/u-boot/${RPI_UBOOT_PORT}
5
5
RPI_GPU_MEM=32
6
6
IMAGE_SIZE=$(( 1000 * 1000 * 1000 )) # 1 GB default
Original file line number Diff line number Diff line change
1
+
2
+ #! /bin/sh
3
+
4
+ pwd
5
+ sudo pkg install -y git
6
+ sudo git clone -b releng/14.2 https://git.freebsd.org/src.git /usr/src
7
+ ls -lat /usr/src
8
+ sh crochet.sh -c ci/configs/config_i386.sh
9
+ rm -rf work/obj
10
+
You can’t perform that action at this time.
0 commit comments