array params can't be used in scripts?
This commit is contained in:
@@ -12,9 +12,12 @@ spec:
|
|||||||
- name: kernel_version
|
- name: kernel_version
|
||||||
type: string
|
type: string
|
||||||
- name: make_flags
|
- name: make_flags
|
||||||
type: array
|
type: string
|
||||||
|
default: ""
|
||||||
- name: config
|
- name: config
|
||||||
type: string
|
type: string
|
||||||
|
- name: localversion
|
||||||
|
type: string
|
||||||
resources:
|
resources:
|
||||||
inputs:
|
inputs:
|
||||||
- name: kernel-configs
|
- name: kernel-configs
|
||||||
@@ -46,14 +49,14 @@ spec:
|
|||||||
echo "res.input.ke...path: $(resources.inputs.kernel-configs.path)"
|
echo "res.input.ke...path: $(resources.inputs.kernel-configs.path)"
|
||||||
echo $PATH
|
echo $PATH
|
||||||
cp $(resources.inputs.kernel-configs.path)/$(params.config) \
|
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)
|
cd /usr/src/linux-source-$(params.kernel_version)
|
||||||
#distcc config
|
#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 "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"
|
echo "ALL DISTCC HOSTS"
|
||||||
distcc --show-hosts
|
distcc --show-hosts
|
||||||
echo "/ALL DISTCC 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:
|
workspaces:
|
||||||
- name: usr-src
|
- name: usr-src
|
||||||
mountPath: /usr/src
|
mountPath: /usr/src
|
||||||
@@ -10,9 +10,8 @@ spec:
|
|||||||
value: '5.10'
|
value: '5.10'
|
||||||
- name: config
|
- name: config
|
||||||
value: pine64-armbian
|
value: pine64-armbian
|
||||||
- name: make_flags
|
- name: localversion
|
||||||
value:
|
value: -pine1
|
||||||
- LOCALVERSION=-pine1
|
|
||||||
resources:
|
resources:
|
||||||
inputs:
|
inputs:
|
||||||
- name: kernel-configs
|
- name: kernel-configs
|
||||||
|
|||||||
@@ -10,12 +10,10 @@ spec:
|
|||||||
value: '5.10'
|
value: '5.10'
|
||||||
- name: config
|
- name: config
|
||||||
value: riotboard
|
value: riotboard
|
||||||
|
- name: localversion
|
||||||
|
value: -riot2
|
||||||
- name: make_flags
|
- name: make_flags
|
||||||
value:
|
value: ARCH=arm KBUILD_DEBARCH=armhf CROSS_COMPILE=arm-linux-gnueabihf-
|
||||||
- LOCALVERSION=-riot2
|
|
||||||
- ARCH=arm
|
|
||||||
- KBUILD_DEBARCH=armhf
|
|
||||||
- CROSS_COMPILE=arm-linux-gnueabihf-
|
|
||||||
resources:
|
resources:
|
||||||
inputs:
|
inputs:
|
||||||
- name: kernel-configs
|
- name: kernel-configs
|
||||||
|
|||||||
@@ -10,9 +10,8 @@ spec:
|
|||||||
value: '5.10'
|
value: '5.10'
|
||||||
- name: config
|
- name: config
|
||||||
value: trimslice
|
value: trimslice
|
||||||
- name: make_flags
|
- name: localversion
|
||||||
value:
|
value: -trimslice1
|
||||||
- LOCALVERSION=-trimslice1
|
|
||||||
resources:
|
resources:
|
||||||
inputs:
|
inputs:
|
||||||
- name: kernel-configs
|
- name: kernel-configs
|
||||||
|
|||||||
Reference in New Issue
Block a user