-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
buildtools/ contains a Dockerfile which can build the buildtools packages. This is done with Ubuntu 22.04 as it can run bitbake with the tools it gets from the live package feeds. Images which do not have the appropriate tooling in their package feeds will be able to copy the appropriate buildtools installer. This usage has been implemented in the following distros... - ubuntu-18.04 - leap-15.3 - leap-15.4 - almalinux-8.7 Many tweaks to the `Build images` workflow to allow for this to happen within github actions.
- Loading branch information
Showing
6 changed files
with
170 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
FROM ubuntu:22.04 as base | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
# [Required packages for build host](https://docs.yoctoproject.org/ref-manual/system-requirements.html#ubuntu-and-debian) | ||
RUN apt update && apt install -y \ | ||
build-essential \ | ||
chrpath \ | ||
cpio \ | ||
debianutils \ | ||
diffstat \ | ||
file \ | ||
gawk \ | ||
gcc \ | ||
git \ | ||
iputils-ping \ | ||
libegl1-mesa \ | ||
liblz4-tool \ | ||
libsdl1.2-dev \ | ||
mesa-common-dev \ | ||
pylint \ | ||
python3 \ | ||
python3-git \ | ||
python3-jinja2 \ | ||
python3-pexpect \ | ||
python3-pip \ | ||
python3-subunit \ | ||
socat \ | ||
texinfo \ | ||
unzip \ | ||
wget \ | ||
xterm \ | ||
xz-utils \ | ||
zstd \ | ||
&& apt clean && rm -rf /var/lib/apt/lists/* | ||
|
||
# Locale setup | ||
RUN apt update && apt install -y \ | ||
locales \ | ||
&& apt clean && rm -rf /var/lib/apt/lists/* | ||
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen \ | ||
&& locale-gen | ||
ENV LANG en_US.UTF-8 | ||
ENV LANGUAGE en_US:en | ||
ENV LC_ALL en_US.UTF-8 | ||
|
||
# Can't run bitbake as root | ||
RUN useradd --create-home chef | ||
|
||
|
||
from base as builder | ||
|
||
USER chef | ||
WORKDIR /home/chef | ||
|
||
RUN \ | ||
git clone git://git.yoctoproject.org/poky \ | ||
&& cd poky \ | ||
&& git checkout master \ | ||
&& . ./oe-init-build-env \ | ||
&& bitbake buildtools-tarball buildtools-extended-tarball buildtools-make-tarball | ||
|
||
|
||
from ubuntu:22.04 as buildtools | ||
|
||
COPY --from=builder /home/chef/poky/build/tmp/deploy/sdk/x86_64-buildtools-nativesdk-standalone-4.2.sh / | ||
COPY --from=builder /home/chef/poky/build/tmp/deploy/sdk/x86_64-buildtools-extended-nativesdk-standalone-4.2.sh / | ||
COPY --from=builder /home/chef/poky/build/tmp/deploy/sdk/x86_64-buildtools-make-nativesdk-standalone-4.2.sh / | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters