Skip to content

Commit d9b9c5a

Browse files
committed
Fix parallel make execution issue. Fix go mod permission issue.
1 parent 067d532 commit d9b9c5a

File tree

4 files changed

+32
-12
lines changed

4 files changed

+32
-12
lines changed

layers/chirpstack/meta-chirpstack/recipes-chirpstack/chirpstack-application-server/chirpstack-application-server_3.11.0.bb

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ SRC_URI = " \
99
file://chirpstack-application-server.monit \
1010
file://chirpstack-application-server.toml \
1111
"
12-
PR = "r1"
12+
PR = "r2"
1313

1414
inherit update-rc.d goarch
1515

@@ -20,19 +20,25 @@ S = "${WORKDIR}/git"
2020

2121
DEPENDS = "go-native go-bindata-native nodejs-native"
2222

23+
# Make sure that make runs one job at a time.
24+
PARALLEL_MAKE = ""
25+
2326
export GOOS = "${TARGET_GOOS}"
2427
export GOARCH = "${TARGET_GOARCH}"
2528
export GOARM = "${TARGET_GOARM}"
26-
export GOCACHE = "${S}/build/.cache"
27-
export GOPATH = "${S}/build"
28-
29+
export GOCACHE = "${WORKDIR}/go/cache"
2930
export HOME = "${WORKDIR}"
3031

3132
do_configure[noexec] = "1"
3233

3334
do_compile() {
3435
oe_runmake ui-requirements
35-
oe_runmake
36+
oe_runmake clean
37+
oe_runmake build
38+
39+
# Clear the modcache. go mod sets the permissions such that yocto will
40+
# raise permission errors when cleaning up the directory.
41+
go clean -modcache
3642
}
3743

3844
do_install() {

layers/chirpstack/meta-chirpstack/recipes-chirpstack/chirpstack-gateway-bridge/chirpstack-gateway-bridge_3.9.1.bb

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ SRC_URI = " \
99
file://chirpstack-gateway-bridge.init \
1010
file://chirpstack-gateway-bridge.monit \
1111
"
12-
PR = "r1"
12+
PR = "r2"
1313

1414
inherit update-rc.d goarch
1515

@@ -20,16 +20,23 @@ S = "${WORKDIR}/git"
2020

2121
DEPENDS = "go-native"
2222

23+
# Make sure that make runs one job at a time.
24+
PARALLEL_MAKE = ""
25+
2326
export GOOS = "${TARGET_GOOS}"
2427
export GOARCH = "${TARGET_GOARCH}"
2528
export GOARM = "${TARGET_GOARM}"
26-
export GOCACHE = "${S}/build/.cache"
27-
export GOPATH = "${S}/build"
29+
export GOCACHE = "${WORKDIR}/go/cache"
30+
export HOME = "${WORKDIR}"
2831

2932
do_configure[noexec] = "1"
3033

3134
do_compile() {
3235
oe_runmake
36+
37+
# Clear the modcache. go mod sets the permissions such that yocto will
38+
# raise permission errors when cleaning up the directory.
39+
go clean -modcache
3340
}
3441

3542
do_install() {

layers/chirpstack/meta-chirpstack/recipes-chirpstack/chirpstack-network-server/chirpstack-network-server_3.10.0.bb

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ SRC_URI = " \
2525
file://config/us915_6.toml \
2626
file://config/us915_7.toml \
2727
"
28-
PR = "r1"
28+
PR = "r2"
2929

3030
inherit update-rc.d goarch
3131

@@ -36,16 +36,23 @@ S = "${WORKDIR}/git"
3636

3737
DEPENDS = "go-native go-bindata-native"
3838

39+
# Make sure that make runs one job at a time.
40+
PARALLEL_MAKE = ""
41+
3942
export GOOS = "${TARGET_GOOS}"
4043
export GOARCH = "${TARGET_GOARCH}"
4144
export GOARM = "${TARGET_GOARM}"
42-
export GOCACHE = "${S}/build/.cache"
43-
export GOPATH = "${S}/build"
45+
export GOCACHE = "${WORKDIR}/go/cache"
46+
export HOME = "${WORKDIR}"
4447

4548
do_configure[noexec] = "1"
4649

4750
do_compile() {
4851
oe_runmake
52+
53+
# Clear the modcache. go mod sets the permissions such that yocto will
54+
# raise permission errors when cleaning up the directory.
55+
go clean -modcache
4956
}
5057

5158
do_install() {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
DISTRO = "chirpstack-gateway-os"
22
DISTRO_NAME = "ChirpStack Gateway OS"
3-
DISTRO_VERSION = "3.3.0-test.7"
3+
DISTRO_VERSION = "3.3.0-test.8"
44

55
EXTRA_IMAGE_FEATURES += "ssh-server-dropbear"

0 commit comments

Comments
 (0)