k8s: add multipil recipes for 1.13.x ~ 1.15.x
[pti/rtp.git] / meta-oran / recipes-containers / kubernetes / kubernetes / 0001-cross-don-t-build-tests-by-default.patch
1 From fa912b53186a047d787c8c456156b9dbdcdf040d Mon Sep 17 00:00:00 2001
2 From: Bruce Ashfield <bruce.ashfield@windriver.com>
3 Date: Thu, 1 Nov 2018 10:21:10 -0400
4 Subject: [PATCH] cross: don't build tests by default
5
6 The hack/* build infrastructure doesn't respect the WHAT= commands
7 that the make infrastructure provides to limit what is built.
8
9 In our case, we are cross building and can't build the server test
10 components without error. As such, we patch the targets out of the
11 script to allow a successful build.
12
13 Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
14 ---
15  hack/make-rules/cross.sh | 4 ++--
16  1 file changed, 2 insertions(+), 2 deletions(-)
17
18 diff --git a/src/import/hack/make-rules/cross.sh b/hack/make-rules/cross.sh
19 index 8e1e938..0898c5c 100755
20 --- a/src/import/hack/make-rules/cross.sh
21 +++ b/src/import/hack/make-rules/cross.sh
22 @@ -33,6 +33,6 @@ make all WHAT="${KUBE_NODE_TARGETS[*]}" KUBE_BUILD_PLATFORMS="${KUBE_NODE_PLATFO
23  
24  make all WHAT="${KUBE_CLIENT_TARGETS[*]}" KUBE_BUILD_PLATFORMS="${KUBE_CLIENT_PLATFORMS[*]}"
25  
26 -make all WHAT="${KUBE_TEST_TARGETS[*]}" KUBE_BUILD_PLATFORMS="${KUBE_TEST_PLATFORMS[*]}"
27 +#make all WHAT="${KUBE_TEST_TARGETS[*]}" KUBE_BUILD_PLATFORMS="${KUBE_TEST_PLATFORMS[*]}"
28  
29 -make all WHAT="${KUBE_TEST_SERVER_TARGETS[*]}" KUBE_BUILD_PLATFORMS="${KUBE_TEST_SERVER_PLATFORMS[*]}"
30 +#make all WHAT="${KUBE_TEST_SERVER_TARGETS[*]}" KUBE_BUILD_PLATFORMS="${KUBE_TEST_SERVER_PLATFORMS[*]}"
31 -- 
32 2.7.4
33