Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create version for 5.0.0 #67

Merged
merged 4 commits into from
Mar 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-kvx-buildroot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ jobs:
uses: actions/checkout@v3

- name: Build
run: source last.refs && ./build-kvx-buildroot.sh
run: source last.refs && ./build-kvx-buildroot.sh DO_GIT_ARCHIVE
62 changes: 37 additions & 25 deletions build-kvx-buildroot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,24 @@
set -eu
unset PERL_MM_OPT

DO_GIT_ARCHIVE=$1

function git_clone() {
local repo=$1
local sha1=$2
local branch=$3

if [[ ! -z "${DO_GIT_ARCHIVE}" ]];
then
repo_name=${repo##*/}
rm -rf ${repo_name}
wget ${repo}/archive/${sha1}.zip
unzip ${sha1}.zip
rm ${sha1}.zip
mv ${repo_name}-${sha1} ${repo_name}
return
fi

if [[ "${branch}" == "-" ]];
then
branch=""
Expand Down Expand Up @@ -34,31 +47,30 @@ function git_clone() {
fi
}

git_clone https://github.com/kalray/buildroot.git "${SHA1_BUILDROOT}" coolidge
git_clone https://github.com/kalray/br2_external_coolidge "${SHA1_BR2_EXTERNAL}" coolidge

BR2_EXTERNAL_PATH=${PWD}/br2_external_coolidge
git_clone https://github.com/kalray/buildroot "${SHA1_BUILDROOT}" main
git_clone https://github.com/kalray/linux_coolidge "${SHA1_LINUX}" main
git_clone https://github.com/kalray/uclibc-ng "${SHA1_UCLIBC}" main
git_clone https://github.com/kalray/musl "${SHA1_MUSL}" main
git_clone https://github.com/kalray/strace "${SHA1_STRACE}" main
git_clone https://github.com/kalray/gcc "${SHA1_GCC}" main
git_clone https://github.com/kalray/binutils "${SHA1_BINUTILS}" main
git_clone https://github.com/kalray/gdb "${SHA1_GDB}" main

cd buildroot
make BR2_EXTERNAL=${BR2_EXTERNAL_PATH} O=build_kvx kvx_defconfig
support/kconfig/merge_config.sh -e "${BR2_EXTERNAL_PATH}" -O $PWD/build_kvx/ $PWD/build_kvx/.config ${BR2_EXTERNAL_PATH}/configs/github.config
make BR2_EXTERNAL=${BR2_EXTERNAL_PATH} O=build_kvx syncconfig

# Patch config to use selected binutils, gdb, gcc, linux, uClibc-ng SHA1
sed -i -e "s/BR2_BINUTILS_VERSION=.*/BR2_BINUTILS_VERSION=${SHA1_BINUTILS}/" build_kvx/.config
sed -i -e "s/BR2_GDB_VERSION=.*/BR2_GDB_VERSION=${SHA1_GDB}/" build_kvx/.config
sed -i -e "s/BR2_GCC_VERSION=.*/BR2_GCC_VERSION=${SHA1_GCC}/" build_kvx/.config
sed -i -e "s@BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION=.*@BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION=\"\$(call github,kalray,linux_coolidge,${SHA1_LINUX})/linux-${SHA1_LINUX}.tar.gz\"@" build_kvx/.config
sed -i -e "s/BR2_UCLIBC_VERSION=.*/BR2_UCLIBC_VERSION=${SHA1_UCLIBC}/" build_kvx/.config
sed -i -e "s/BR2_STRACE_VERSION=.*/BR2_STRACE_VERSION=${SHA1_STRACE}/" build_kvx/.config
# need to investigate barebox

# Append to hash files
echo "sha512 ${HASH_GCC} gcc-${SHA1_GCC}.tar.gz" >> package/gcc/gcc.hash
echo "sha512 ${HASH_GDB} gdb-${SHA1_GDB}.tar.gz" >> package/gdb/gdb.hash
echo "sha512 ${HASH_BINUTILS} binutils-${SHA1_BINUTILS}.tar.gz" >> package/binutils/binutils.hash
echo "sha512 ${HASH_UCLIBC} uclibc-${SHA1_UCLIBC}.tar.gz" >> package/uclibc/uclibc.hash
echo "sha512 ${HASH_STRACE} strace-${SHA1_STRACE}.tar.gz" >> package/strace/strace.hash
make O=../build_buildroot_kvx kvx_defconfig
cd ../build_buildroot_kvx
cat > local.mk << EOF
LINUX_OVERRIDE_SRCDIR := ../linux_coolidge
MUSL_OVERRIDE_SRCDIR := ../musl
STRACE_OVERRIDE_SRCDIR := ../strace
UCLIBC_NG_TEST_OVERRIDE_SRCDIR := ../uclibc-ng-test
BINUTILS_OVERRIDE_SRCDIR := ../binutils
GCC_FINAL_OVERRIDE_SRCDIR := ../gcc
HOST_GDB_OVERRIDE_SRCDIR := ../gdb
GCC_INITIAL_OVERRIDE_SRCDIR := ../gcc
GDB_OVERRIDE_SRCDIR := ../gdb
UCLIBC_OVERRIDE_SRCDIR := ../uclibc-ng
EOF

cd build_kvx
make BR2_EXTERNAL=${BR2_EXTERNAL_PATH}
sed -i -e 's/BR2_TARGET_BAREBOX=y/# BR2_TARGET_BAREBOX is not set/' .config
make
2 changes: 1 addition & 1 deletion last.refs
27 changes: 27 additions & 0 deletions refs/5.0.0.refs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Github sha1 for 5.0.0
# Source this file before executing build-kvx-xgcc.sh to build this release
export SHA1_GCC=ff559b8c1afd7b42a727268f56f544b819f65e04
export SHA1_BINUTILS=36c6e9ec960aa92a8b41b97fe5facd9a9abbb039
export SHA1_NEWLIB=26691652b98be6f0ee5b3f4ab82904b7a202b529
export SHA1_LLVM=758a150ab84758caeafee3b362c47799ad4cc0d0
export SHA1_GDB=da5415b274c4784ca9c94459056eeca377917a28

export HASH_GCC=48747383bb635bbd6b9c34c9946249088acd7a6e43c628f9e8f42b452dc1823d1f0ad8fbb33708782e93a018a24fa264418af566188fb9e0fefa5577920b6cd3
export HASH_BINUTILS=45fb7e7a772d48237e2faf7e72ef8935ca11e8a83f726d9e07bc45416804afa33c5cde54038bc66aa262b5840d90a17fdc7d2fa02d380dde359ffac7ee63abb9
export HASH_NEWLIB=0af5dad8ae1ca2f204aa70f053e9fd1c0ebf5aa21b07942943b0848bfb977870a49c6faee051eaeaf7e55c4f0705e3f715abf7cf389cc38c73ba47daf72e06af
export HASH_LLVM=b35333e1d2143ab8e2609e24ff4d026ed6fa845251a8a800d5259ee68c0e4727aa2c71971873a2f2efd5442248cf88966731729e957afe4d4784293e98b434f2
export HASH_GDB=f1bf7c61562ab2ab9c417ca46e94bec239eeedd6e1b75b65a820364899bdd94ce4db5400173635c0c5cccace7a51d439ce0149857ad53ab19f48b4bcee142219

export SHA1_BUILDROOT=c106bcb6ce8211eafb4d013866dbc87001cf8fed
export SHA1_MUSL=bc508f33ba3e2c56c19decb96f5ed99ef49efb2f
export SHA1_LINUX=68f7b7a8532d7f42143017f414470f4f9303468b
export SHA1_UCLIBC=7888351d92bb9fcdcde4c31359803f091c5b6258
export SHA1_BR2_EXTERNAL=bb1409a11319ca83fae1f8b0ec163d15e5323636
export SHA1_STRACE=5ccf7786fb45aa374bd86413bb27a39438cfcf5a

export HASH_BUILDROOT=b1d188d17aa04f68813a232e64606ed51729ff31ba6bda374538116f92b48a4dd6853f8d44ad75e18e5c01bb3fa3f7248104861d526c265ea755c5bd9a389912
export HASH_MUSL=f4885c7b37dc02ab114393e9ea8c8a39d4afb4849e5691b462e159a49e185c5c448d5b8cef4e5b6c167a291ec23ad34a09f78bab36879d145aa192a9779a90d1
export HASH_LINUX=85e36bab7102439802cc6e7a590a88bae48a52cd632d3f1800d2b721890d6b7424c99af1a7e6db7a947de15ac7f4170c2da450fb36bb5de1e4f8f93dc453c3a8
export HASH_UCLIBC=07f4672c8b6c9b622a3c6d15c1c5a017e4e094d130ad7f9cc7bd9c9d0d654b605995b22837c05115ba4a0de681859eb7221bdd4087d96e24db9f309f8781042a
export HASH_BR2_EXTERNAL=b515fad0318a3389c2b95b288c6ee518d514690681c07ec2866931b72ef0023e52a16c1bec75556064c6c3c3ec4ecfb0074b5319d81c061fc7d7fa0a5d51fa96
export HASH_STRACE=3b04f66af2d6c572235b66c517d0cdb7d7f1570e124c9231bb43b00d5ce05af54cea1c9362443313d4ab4b725814558915a72e3ea4126eba20bff6111e2a8dc0
Loading