use bash if to check opi5

This commit is contained in:
Pratham Patel 2023-10-08 19:01:42 +05:30
parent 531bda6763
commit 4d325265f5
No known key found for this signature in database
7 changed files with 10 additions and 10 deletions

View File

@ -1,5 +1,5 @@
# change version here
%global rel_ver 7
%global rel_ver 8
%global major_ver 6
%global minor_ver 1
%global patch_ver 56

View File

@ -1,5 +1,5 @@
# change version here
%global rel_ver 7
%global rel_ver 8
%global next_snapshot_date 20231006
%global target_config defconfig
%global kname next

View File

@ -1,5 +1,5 @@
# change version here
%global rel_ver 7
%global rel_ver 8
%global patch_ver 0
%global major_ver 6
%global minor_ver 6

View File

@ -1,5 +1,5 @@
# change version here
%global rel_ver 12
%global rel_ver 13
%global major_ver 6
%global minor_ver 6
%global rc_ver 4

View File

@ -1,5 +1,5 @@
# change version here
%global rel_ver 7
%global rel_ver 8
%global major_ver 6
%global minor_ver 5
%global patch_ver 6

View File

@ -1,5 +1,5 @@
# change version here
%global rel_ver 8
%global rel_ver 9
%global major_ver 5
%global minor_ver 10
%global patch_ver 160

View File

@ -111,10 +111,10 @@ make olddefconfig
# 2 means trouble
diff .config .config.%{target_config} || echo "Diffing done"
%if "%{name}" == "*opi5*"
if [[ "%{name}" =~ 'opi5' ]]; then
sed -i 's@KBUILD_IMAGE := $(boot)/Image.gz@KBUILD_IMAGE := $(boot)/Image@' arch/arm64/Makefile
%global make_targets Image modules dtbs
%endif
fi
%build
%{make} PYTHON=%{__python3} %{make_targets}