array params can't be used in scripts?
This commit is contained in:
@@ -12,9 +12,12 @@ spec:
|
||||
- name: kernel_version
|
||||
type: string
|
||||
- name: make_flags
|
||||
type: array
|
||||
type: string
|
||||
default: ""
|
||||
- name: config
|
||||
type: string
|
||||
- name: localversion
|
||||
type: string
|
||||
resources:
|
||||
inputs:
|
||||
- name: kernel-configs
|
||||
@@ -46,14 +49,14 @@ spec:
|
||||
echo "res.input.ke...path: $(resources.inputs.kernel-configs.path)"
|
||||
echo $PATH
|
||||
cp $(resources.inputs.kernel-configs.path)/$(params.config) \
|
||||
/usr/src/linux-source-${VER}/.config || exit 1
|
||||
/usr/src/linux-source-${params.kernel_version}/.config || exit 1
|
||||
cd /usr/src/linux-source-$(params.kernel_version)
|
||||
#distcc config
|
||||
echo "localhost/1,cpp,lzo --randomize distcc-0.distcc,cpp,lzo distcc-1.distcc,cpp,lzo distcc-2.distcc,cpp,lzo distcc-3.distcc,cpp,lzo" >/etc/distcc/hosts
|
||||
echo "ALL DISTCC HOSTS"
|
||||
distcc --show-hosts
|
||||
echo "/ALL DISTCC HOSTS"
|
||||
distcc-pump make -j20 bindeb-pkg CC=distcc $(params.make_flags[*])
|
||||
distcc-pump make -j20 bindeb-pkg CC=distcc LOCALVERSION=$(params.localversion) $(params.make_flags)
|
||||
workspaces:
|
||||
- name: usr-src
|
||||
mountPath: /usr/src
|
||||
@@ -10,9 +10,8 @@ spec:
|
||||
value: '5.10'
|
||||
- name: config
|
||||
value: pine64-armbian
|
||||
- name: make_flags
|
||||
value:
|
||||
- LOCALVERSION=-pine1
|
||||
- name: localversion
|
||||
value: -pine1
|
||||
resources:
|
||||
inputs:
|
||||
- name: kernel-configs
|
||||
|
||||
@@ -10,12 +10,10 @@ spec:
|
||||
value: '5.10'
|
||||
- name: config
|
||||
value: riotboard
|
||||
- name: localversion
|
||||
value: -riot2
|
||||
- name: make_flags
|
||||
value:
|
||||
- LOCALVERSION=-riot2
|
||||
- ARCH=arm
|
||||
- KBUILD_DEBARCH=armhf
|
||||
- CROSS_COMPILE=arm-linux-gnueabihf-
|
||||
value: ARCH=arm KBUILD_DEBARCH=armhf CROSS_COMPILE=arm-linux-gnueabihf-
|
||||
resources:
|
||||
inputs:
|
||||
- name: kernel-configs
|
||||
|
||||
@@ -10,9 +10,8 @@ spec:
|
||||
value: '5.10'
|
||||
- name: config
|
||||
value: trimslice
|
||||
- name: make_flags
|
||||
value:
|
||||
- LOCALVERSION=-trimslice1
|
||||
- name: localversion
|
||||
value: -trimslice1
|
||||
resources:
|
||||
inputs:
|
||||
- name: kernel-configs
|
||||
|
||||
Reference in New Issue
Block a user