mirror of
https://github.com/Telecominfraproject/OpenNetworkLinux.git
synced 2026-01-27 10:22:15 +00:00
Add arm64 support for toolchain in builder8:1.5
This commit is contained in:
21
docker/images/builder8/1.5/Dockerfile
Normal file
21
docker/images/builder8/1.5/Dockerfile
Normal file
@@ -0,0 +1,21 @@
|
||||
############################################################
|
||||
#
|
||||
# Update with aarch64 support dependencies.
|
||||
#
|
||||
############################################################
|
||||
FROM opennetworklinux/builder8:1.4
|
||||
MAINTAINER Jeffrey Townsend <jeffrey.townsend@bigswitch.com>
|
||||
|
||||
RUN dpkg --add-architecture arm64
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
crossbuild-essential-arm64 \
|
||||
gcc-aarch64-linux-gnu
|
||||
|
||||
RUN xapt -a arm64 libedit-dev ncurses-dev libsensors4-dev libwrap0-dev libssl-dev libsnmp-dev
|
||||
|
||||
#
|
||||
# Docker shell and other container tools.
|
||||
#
|
||||
COPY docker_shell /bin/docker_shell
|
||||
COPY container-id /bin/container-id
|
||||
19
docker/images/builder8/1.5/Makefile
Normal file
19
docker/images/builder8/1.5/Makefile
Normal file
@@ -0,0 +1,19 @@
|
||||
VERSION=1.5
|
||||
USER=opennetworklinux
|
||||
REPO=builder8
|
||||
|
||||
TOOLS=../../../tools/docker_shell ../../../tools/container-id
|
||||
|
||||
build: check_version
|
||||
cp $(TOOLS) .
|
||||
docker build -t $(USER)/$(REPO):$(VERSION) .
|
||||
rm -rf $(notdir $(TOOLS))
|
||||
|
||||
#
|
||||
# Todo: Query remote repository to see if the request version already exists to avoid accidental overwrites
|
||||
# when a new image is built but the VERSION variable is not updated.
|
||||
#
|
||||
check_version:
|
||||
|
||||
push:
|
||||
docker push $(USER)/$(REPO):$(VERSION)
|
||||
9
make/config.arm64.mk
Normal file
9
make/config.arm64.mk
Normal file
@@ -0,0 +1,9 @@
|
||||
############################################################
|
||||
#
|
||||
# Open Network Linux
|
||||
#
|
||||
############################################################
|
||||
include $(ONL)/make/config.mk
|
||||
export TOOLCHAIN := aarch64-linux-gnu
|
||||
export ARCH := arm64
|
||||
export UARCH := ARM64
|
||||
Reference in New Issue
Block a user