mirror of
https://onedev.site.tesses.net/Dependencies/DebBuilder
synced 2026-02-08 10:05:46 +00:00
Add other architectures
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -1,7 +1,15 @@
|
|||||||
FROM ubuntu:jammy
|
FROM ubuntu:jammy
|
||||||
|
|
||||||
|
COPY jammy /etc/apt/sources.list.d
|
||||||
|
COPY toolchains /opt/toolchains
|
||||||
|
|
||||||
|
RUN dpkg --add-architecture i386
|
||||||
|
RUN dpkg --add-architecture riscv64
|
||||||
|
RUN dpkg --add-architecture arm64
|
||||||
|
RUN dpkg --add-architecture armhf
|
||||||
|
|
||||||
RUN apt update -y
|
RUN apt update -y
|
||||||
RUN apt install -y cmake build-essential g++ libmbedtls-dev make wget curl
|
RUN apt install -y cmake build-essential libmbedtls-dev make wget curl crossbuild-essential-armhf crossbuild-essential-i386 crossbuild-essential-riscv64 crossbuild-essential-armhf crossbuild-essential-arm64 libmbedtls-dev:armhf libmbedtls-dev:arm64 libmbedtls-dev:i386 libmbedtls-dev:riscv64
|
||||||
RUN curl https://git.tesseslanguage.com/api/packages/tesses50/debian/repository.key -o /etc/apt/keyrings/gitea-tesses50.asc
|
RUN curl https://git.tesseslanguage.com/api/packages/tesses50/debian/repository.key -o /etc/apt/keyrings/gitea-tesses50.asc
|
||||||
RUN echo "deb [signed-by=/etc/apt/keyrings/gitea-tesses50.asc] https://git.tesseslanguage.com/api/packages/tesses50/debian jammy main" | tee -a /etc/apt/sources.list.d/gitea.list
|
RUN echo "deb [signed-by=/etc/apt/keyrings/gitea-tesses50.asc] https://git.tesseslanguage.com/api/packages/tesses50/debian jammy main" | tee -a /etc/apt/sources.list.d/gitea.list
|
||||||
RUN apt update -y
|
RUN apt update -y
|
||||||
|
|||||||
@@ -1,7 +1,12 @@
|
|||||||
FROM ubuntu:plucky
|
FROM ubuntu:plucky
|
||||||
|
COPY toolchains /opt/toolchains
|
||||||
|
COPY plucky /etc/apt/sources.list.d
|
||||||
|
RUN dpkg --add-architecture i386
|
||||||
|
RUN dpkg --add-architecture riscv64
|
||||||
|
RUN dpkg --add-architecture arm64
|
||||||
|
RUN dpkg --add-architecture armhf
|
||||||
RUN apt update -y
|
RUN apt update -y
|
||||||
RUN apt install -y cmake build-essential g++ libmbedtls-dev make wget curl
|
RUN apt install -y cmake build-essential libmbedtls-dev make wget curl crossbuild-essential-armhf crossbuild-essential-i386 crossbuild-essential-riscv64 crossbuild-essential-armhf crossbuild-essential-arm64 libmbedtls-dev:armhf libmbedtls-dev:arm64 libmbedtls-dev:i386 libmbedtls-dev:riscv64
|
||||||
RUN curl https://git.tesseslanguage.com/api/packages/tesses50/debian/repository.key -o /etc/apt/keyrings/gitea-tesses50.asc
|
RUN curl https://git.tesseslanguage.com/api/packages/tesses50/debian/repository.key -o /etc/apt/keyrings/gitea-tesses50.asc
|
||||||
RUN echo "deb [signed-by=/etc/apt/keyrings/gitea-tesses50.asc] https://git.tesseslanguage.com/api/packages/tesses50/debian plucky main" | tee -a /etc/apt/sources.list.d/gitea.list
|
RUN echo "deb [signed-by=/etc/apt/keyrings/gitea-tesses50.asc] https://git.tesseslanguage.com/api/packages/tesses50/debian plucky main" | tee -a /etc/apt/sources.list.d/gitea.list
|
||||||
RUN apt update -y
|
RUN apt update -y
|
||||||
|
|||||||
4
README.md
Normal file
4
README.md
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# DebBuilder
|
||||||
|
|
||||||
|
Thanks to
|
||||||
|
- [xoofee](https://xoofee.github.io/posts/2024/12/install_arm64_package_in_x86_ubuntu_for_cross_compile/)
|
||||||
6
jammy/arm64.sources
Normal file
6
jammy/arm64.sources
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
Types: deb
|
||||||
|
URIs: http://ports.ubuntu.com/ubuntu-ports/
|
||||||
|
Suites: jammy jammy-updates jammy-backports
|
||||||
|
Components: main universe restricted multiverse
|
||||||
|
Architectures: arm64
|
||||||
|
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
|
||||||
6
jammy/armhf.sources
Normal file
6
jammy/armhf.sources
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
Types: deb
|
||||||
|
URIs: http://ports.ubuntu.com/ubuntu-ports/
|
||||||
|
Suites: jammy jammy-updates jammy-backports
|
||||||
|
Components: main universe restricted multiverse
|
||||||
|
Architectures: armhf
|
||||||
|
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
|
||||||
6
jammy/riscv64.sources
Normal file
6
jammy/riscv64.sources
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
Types: deb
|
||||||
|
URIs: http://ports.ubuntu.com/ubuntu-ports/
|
||||||
|
Suites: jammy jammy-updates jammy-backports
|
||||||
|
Components: main universe restricted multiverse
|
||||||
|
Architectures: riscv64
|
||||||
|
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
|
||||||
6
plucky/arm64.sources
Normal file
6
plucky/arm64.sources
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
Types: deb
|
||||||
|
URIs: http://ports.ubuntu.com/ubuntu-ports/
|
||||||
|
Suites: plucky plucky-updates plucky-backports
|
||||||
|
Components: main universe restricted multiverse
|
||||||
|
Architectures: arm64
|
||||||
|
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
|
||||||
6
plucky/armhf.sources
Normal file
6
plucky/armhf.sources
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
Types: deb
|
||||||
|
URIs: http://ports.ubuntu.com/ubuntu-ports/
|
||||||
|
Suites: plucky plucky-updates plucky-backports
|
||||||
|
Components: main universe restricted multiverse
|
||||||
|
Architectures: armhf
|
||||||
|
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
|
||||||
6
plucky/riscv64.sources
Normal file
6
plucky/riscv64.sources
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
Types: deb
|
||||||
|
URIs: http://ports.ubuntu.com/ubuntu-ports/
|
||||||
|
Suites: plucky plucky-updates plucky-backports
|
||||||
|
Components: main universe restricted multiverse
|
||||||
|
Architectures: riscv64
|
||||||
|
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
|
||||||
6
toolchains/arm64.cmake
Normal file
6
toolchains/arm64.cmake
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
set(CMAKE_C_COMPILER "aarch64-linux-gnu-gcc")
|
||||||
|
set(CMAKE_CXX_COMPILER "aarch64-linux-gnu-g++")
|
||||||
|
set(CMAKE_SYSTEM_NAME Linux)
|
||||||
|
set(CMAKE_SYSTEM_PROCESSOR arm64)
|
||||||
|
|
||||||
|
set(TOOLCHAIN_PREFIX aarch64-linux-gnu-)
|
||||||
6
toolchains/armhf.cmake
Normal file
6
toolchains/armhf.cmake
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
set(CMAKE_C_COMPILER "arm-linux-gnueabihf-gcc")
|
||||||
|
set(CMAKE_CXX_COMPILER "arm-linux-gnueabihf-g++")
|
||||||
|
set(CMAKE_SYSTEM_NAME Linux)
|
||||||
|
set(CMAKE_SYSTEM_PROCESSOR armhf)
|
||||||
|
|
||||||
|
set(TOOLCHAIN_PREFIX arm-linux-gnueabihf-)
|
||||||
6
toolchains/i386.cmake
Normal file
6
toolchains/i386.cmake
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
set(CMAKE_C_COMPILER "i686-linux-gnu-gcc")
|
||||||
|
set(CMAKE_CXX_COMPILER "i686-linux-gnu-g++")
|
||||||
|
set(CMAKE_SYSTEM_NAME Linux)
|
||||||
|
set(CMAKE_SYSTEM_PROCESSOR i686)
|
||||||
|
|
||||||
|
set(TOOLCHAIN_PREFIX i686-linux-gnu-)
|
||||||
6
toolchains/riscv64.cmake
Normal file
6
toolchains/riscv64.cmake
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
set(CMAKE_C_COMPILER "riscv64-linux-gnu-gcc")
|
||||||
|
set(CMAKE_CXX_COMPILER "riscv64-linux-gnu-g++")
|
||||||
|
set(CMAKE_SYSTEM_NAME Linux)
|
||||||
|
set(CMAKE_SYSTEM_PROCESSOR riscv64)
|
||||||
|
|
||||||
|
set(TOOLCHAIN_PREFIX riscv64-linux-gnu-)
|
||||||
Reference in New Issue
Block a user