blob: fdf5ccae7d84f40b6d9205b3b12360e84c3bb91c [file] [log] [blame]
Thiyagarajan Subramani89fffc02019-05-13 21:33:20 +00001# Copyright (C) 2018 Makefile
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at:
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
Girish Gowdraa1640802021-11-24 20:24:38 -080015COMMIT_ID = f0bcb230
Thiyagarajan Subramani5bd7ef32022-04-04 11:07:56 +053016RLT_COMMIT_ID = 72b95a7
Thiyagarajan Subramanie84935d2020-04-23 17:45:44 +053017INBAND = "n"
Thiyagarajan Subramani3e8bfd92021-04-26 15:07:14 +053018BOARD = ""
Thiyagarajan Subramani89fffc02019-05-13 21:33:20 +000019
20onl-4.14:
Thiyagarajan Subramanie84935d2020-04-23 17:45:44 +053021 if [ $(INBAND) = y ]; then \
Girish Gowdraa1640802021-11-24 20:24:38 -080022 cd OpenNetworkLinux && git checkout -B $@ $(COMMIT_ID) && git pull origin pull/822/head -ff -q --no-edit && git apply disable-certificate-validation-v$(COMMIT_ID).patch && git apply inband-$(COMMIT_ID).patch && docker/tools/onlbuilder --non-interactive -8 -c ./build-onl.sh; \
Thiyagarajan Subramanie84935d2020-04-23 17:45:44 +053023 else \
Girish Gowdraa1640802021-11-24 20:24:38 -080024 cd OpenNetworkLinux && git stash && git checkout -B $@ $(COMMIT_ID) && git pull origin pull/822/head -ff -q --no-edit && git apply disable-certificate-validation-v$(COMMIT_ID).patch && docker/tools/onlbuilder --non-interactive -8 -c ./build-onl.sh; \
Thiyagarajan Subramanie84935d2020-04-23 17:45:44 +053025 fi;
Thiyagarajan Subramani3e8bfd92021-04-26 15:07:14 +053026onl-4.19:
Thiyagarajan Subramaniaf1a5fb2022-02-24 18:32:05 +053027 if [ "$(BOARD)" = "rlt-3200g-w" ] || [ "$(BOARD)" = "rlt-1600g-w" ] || [ "$(BOARD)" = "rlt-1600x-w" ]; then \
Thiyagarajan Subramani5bd7ef32022-04-04 11:07:56 +053028 cd OpenNetworkLinux && git stash && git checkout -B $@ $(RLT_COMMIT_ID) && git apply disable-certificate-validation-v$(RLT_COMMIT_ID).patch && bash update_kernel_options.sh && docker/tools/onlbuilder --non-interactive -9 -c ./build-onl.sh; \
Thiyagarajan Subramani3e8bfd92021-04-26 15:07:14 +053029 else \
Thiyagarajan Subramaniaf1a5fb2022-02-24 18:32:05 +053030 cd OpenNetworkLinux && git stash && git checkout -B $@ $(COMMIT_ID) && git pull origin pull/822/head -ff -q --no-edit && git apply disable-certificate-validation-v$(COMMIT_ID).patch && docker/tools/onlbuilder --non-interactive -9 -c ./build-onl.sh; \
Thiyagarajan Subramani3e8bfd92021-04-26 15:07:14 +053031 fi;