Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

Commit 5479e72

Browse files
committed
Downgrade compilers for old debian
1 parent bd7a7f4 commit 5479e72

File tree

2 files changed

+20
-19
lines changed

2 files changed

+20
-19
lines changed

.circleci/build-sdklt.sh

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,15 @@ cd $SDK/appl/demo
2727
make TARGET_PLATFORM=xlr_linux clean -j
2828
make TARGET_PLATFORM=xlr_linux -j 2
2929

30-
TARFOLDER=mktemp -d
31-
32-
cp $SDKLT/src/appl/linux/build/xlr_linux/lkm/knet/linux_ngknet.ko \
33-
$SDKLT/src/appl/linux/build/xlr_linux/lkm/bde/linux_ngbde.ko \
34-
$SDKLT/src/appl/demo/build/xlr_linux/sdklt \
35-
$SDKLT/src/appl/sdklib/build/xlr_linux/include/sdklt \
36-
$SDKLT/src/appl/sdklib/build/xlr_linux/lib/libsdklt.a \
37-
$SDKLT/src/appl/sdklib/build/xlr_linux/lib/libsdklt.so \
38-
${TARFOLDER}
39-
40-
tar czf $HOME/sdklt-${KERNEL_VERSION}.tgz ${TARFOLDER}
30+
TAR_FOLDER=/tmp/sdklt-${KERNEL_VERSION}
31+
mkdir -p ${TAR_FOLDER}
32+
33+
cp -r $SDKLT/src/appl/linux/build/xlr_linux/lkm/knet/linux_ngknet.ko \
34+
$SDKLT/src/appl/linux/build/xlr_linux/lkm/bde/linux_ngbde.ko \
35+
$SDKLT/src/appl/demo/build/xlr_linux/sdklt \
36+
$SDKLT/src/appl/sdklib/build/xlr_linux/include \
37+
$SDKLT/src/appl/sdklib/build/xlr_linux/lib \
38+
${TAR_FOLDER}
39+
40+
tar czf $HOME/sdklt-${KERNEL_VERSION}.tgz \
41+
-C /tmp sdklt-${KERNEL_VERSION}

.circleci/config.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ commands:
2727
name: Setup build environment
2828
command: |
2929
apt update
30-
apt install -y --no-install-recommends libyaml-dev python python-pip python-setuptools libelf-dev wget clang-8 gcc-9 make git ca-certificates ssh
31-
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 10
32-
update-alternatives --install /usr/bin/clang clang /usr/bin/clang-8 10
30+
apt install -y --no-install-recommends libyaml-dev python python-pip python-setuptools libelf-dev wget clang-7 gcc-8 make git ca-certificates ssh
31+
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 10
32+
update-alternatives --install /usr/bin/clang clang /usr/bin/clang-7 10
3333
update-alternatives --install /usr/bin/cc cc /usr/bin/clang 10
3434
pip install pyyaml
3535
- run:
@@ -42,23 +42,23 @@ commands:
4242
popd
4343
- checkout
4444
- run:
45-
name: Create build directory
46-
command: mkdir -p ~/build
45+
name: Create staging directory
46+
command: mkdir -p ~/staging
4747
- run:
4848
name: Build SDKLT
4949
command: |
5050
export ADD_CFLAGS="-fomit-frame-pointer -O3"
5151
KERNEL_VERSION=<< parameters.kernel_version >> .circleci/build-sdklt.sh
52-
mv ~/sdklt-<< parameters.kernel_version >>.tgz ~/build/sdklt-<< parameters.kernel_version >>.tgz
52+
mv ~/sdklt-<< parameters.kernel_version >>.tgz ~/staging/sdklt-<< parameters.kernel_version >>.tgz
5353
- run:
5454
name: Build SDKLT debug
5555
command: |
5656
export ADD_CFLAGS="-g -fno-omit-frame-pointer -O0 -fsanitize=address"
5757
export ADD_LDFLAGS="-fsanitize=address"
5858
KERNEL_VERSION=<< parameters.kernel_version >> .circleci/build-sdklt.sh
59-
mv ~/sdklt-<< parameters.kernel_version >>.tgz ~/build/sdklt-debug-<< parameters.kernel_version >>.tgz
59+
mv ~/sdklt-<< parameters.kernel_version >>.tgz ~/staging/sdklt-debug-<< parameters.kernel_version >>.tgz
6060
- persist_to_workspace:
61-
root: ~/build/
61+
root: ~/staging/
6262
paths:
6363
- sdklt-<< parameters.kernel_version >>.tgz
6464
- sdklt-debug-<< parameters.kernel_version >>.tgz

0 commit comments

Comments
 (0)