Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit 0f827ef

Browse files
authored
[19.03 backport] Add Raspbian buster (#361)
[19.03 backport] Add Raspbian buster Upstream-commit: f2f6cd88365a84597c99632db408e592c1d97a56 Component: packaging
2 parents ee45afb + f86b8ce commit 0f827ef

2 files changed

Lines changed: 38 additions & 16 deletions

File tree

components/packaging/deb/Makefile

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -61,35 +61,28 @@ deb: ubuntu debian raspbian ## build all deb packages
6161
ubuntu: ubuntu-bionic ubuntu-xenial ## build all ubuntu deb packages
6262

6363
.PHONY: debian
64-
debian: debian-stretch ## build all debian deb packages
64+
debian: debian-stretch debian-buster ## build all debian deb packages
6565

6666
.PHONY: raspbian
67-
raspbian: raspbian-stretch ## build all raspbian deb packages
67+
raspbian: raspbian-stretch raspbian-buster ## build all raspbian deb packages
6868

6969
.PHONY: ubuntu-%
70-
ubuntu-%: ## build ubuntu deb packages
70+
## build ubuntu deb packages
7171
ubuntu-%: $(SOURCES)
7272
$(BUILD)
7373
$(RUN)
7474
$(CHOWN) -R $(shell id -u):$(shell id -g) debbuild/$@
7575

76-
.PHONY: debian-buster
77-
debian-buster: ## build debian buster deb packages
78-
debian-buster: $(SOURCES)
76+
.PHONY: debian-%
77+
## build debian deb packages
78+
debian-%: $(SOURCES)
7979
$(BUILD)
8080
$(RUN)
8181
$(CHOWN) -R $(shell id -u):$(shell id -g) debbuild/$@
8282

83-
.PHONY: debian-stretch
84-
debian-stretch: ## build debian stretch deb packages
85-
debian-stretch: $(SOURCES)
86-
$(BUILD)
87-
$(RUN)
88-
$(CHOWN) -R $(shell id -u):$(shell id -g) debbuild/$@
89-
90-
.PHONY: raspbian-stretch
91-
raspbian-stretch: ## build raspbian stretch deb packages
92-
raspbian-stretch: $(SOURCES)
83+
.PHONY: raspbian-%
84+
## build raspbian deb packages
85+
raspbian-%: $(SOURCES)
9386
$(BUILD)
9487
$(RUN)
9588
$(CHOWN) -R $(shell id -u):$(shell id -g) debbuild/$@
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
ARG GO_IMAGE
2+
ARG BUILD_IMAGE=balenalib/rpi-raspbian:buster
3+
FROM ${GO_IMAGE} as golang
4+
5+
FROM ${BUILD_IMAGE}
6+
7+
RUN apt-get update && apt-get install -y curl devscripts equivs git
8+
9+
ARG GO_VERSION
10+
ENV GOPATH /go
11+
ENV PATH $PATH:/usr/local/go/bin:$GOPATH/bin
12+
ENV DOCKER_BUILDTAGS apparmor seccomp selinux
13+
ENV RUNC_BUILDTAGS apparmor seccomp selinux
14+
15+
ARG COMMON_FILES
16+
COPY ${COMMON_FILES} /root/build-deb/debian
17+
RUN mk-build-deps -t "apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends -y" -i /root/build-deb/debian/control
18+
19+
COPY sources/ /sources
20+
21+
ENV DISTRO raspbian
22+
ENV SUITE buster
23+
24+
COPY --from=golang /usr/local/go /usr/local/go
25+
26+
WORKDIR /root/build-deb
27+
COPY build-deb /root/build-deb/build-deb
28+
29+
ENTRYPOINT ["/root/build-deb/build-deb"]

0 commit comments

Comments
 (0)