Skip to content

Commit

Permalink
add x86_64 toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
ltekieli committed May 30, 2022
1 parent 612e343 commit e232b8d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
11 changes: 7 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@ source ~/.ct-ng-$(cat ./.ct-ng-version)/activate
mkdir -p output/downloads
export CT_PREFIX=${PWD}/output

TAG=2022.05.01

function _build() {
CONFIG=$1
DEFCONFIG="${CONFIG}_defconfig" ct-ng defconfig
ct-ng -j$(nproc) build

tar -c \
--sort=name \
--mtime="2021-12-01" \
--mtime="${TAG}" \
--owner=0 \
--group=0 \
--numeric-owner \
Expand All @@ -24,16 +26,17 @@ function _build() {
}

function _release() {
hub release create -m v2021.12.01 \
hub release create -m "v${TAG}" \
-a output/aarch64-rpi3-linux-gnu.tar.gz \
-a output/aarch64-rpi3-linux-gnu.tar.gz.sha256 \
-a output/arm-cortex_a8-linux-gnueabihf.tar.gz \
-a output/arm-cortex_a8-linux-gnueabihf.tar.gz.sha256 \
-a output/armv6-rpi-linux-gnueabihf.tar.gz \
-a output/armv6-rpi-linux-gnueabihf.tar.gz.sha256 \
v2021.12.01
"v${TAG}"
}

_build aarch64-rpi3-linux-gnu
_build arm-cortex_a8-linux-gnueabihf
_build armv6-rpi-linux-gnueabihf
_build x86_64-unknown-linux-gnu
10 changes: 10 additions & 0 deletions x86_64-unknown-linux-gnu_defconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
CT_CONFIG_VERSION="4"
CT_LOCAL_TARBALLS_DIR="${CT_PREFIX}/downloads"
CT_ARCH_X86=y
CT_ARCH_64=y
CT_STATIC_TOOLCHAIN=y
CT_KERNEL_LINUX=y
CT_GLIBC_KERNEL_VERSION_NONE=y
CT_CC_GCC_LNK_HASH_STYLE_BOTH=y
CT_CC_LANG_CXX=y
CT_DEBUG_GDB=y

0 comments on commit e232b8d

Please sign in to comment.