diff --git a/build.sh b/build.sh index d34f60a..47ea91d 100755 --- a/build.sh +++ b/build.sh @@ -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 \ @@ -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 diff --git a/x86_64-unknown-linux-gnu_defconfig b/x86_64-unknown-linux-gnu_defconfig new file mode 100644 index 0000000..9dba348 --- /dev/null +++ b/x86_64-unknown-linux-gnu_defconfig @@ -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