build uncompressed ARM64 image for OPi5 since vendor's uboot is from 2017(!) and its "booti" supports only uncompressed kernel image

This commit is contained in:
Pratham Patel 2023-10-08 18:27:00 +05:30
parent 4a08df9c92
commit 080ccd95e9
No known key found for this signature in database

View File

@ -111,8 +111,12 @@ make olddefconfig
# 2 means trouble
diff .config .config.%{target_config} || echo "Diffing done"
%if "%{name}" == "*opi5*"
sed -i 's@KBUILD_IMAGE := $(boot)/Image.gz@KBUILD_IMAGE := $(boot)/Image@' arch/arm64/Makefile
%global make_targets Image modules dtbs
%endif
%build
#export LLVM=1 AR=llvm-ar CC=clang HOSTAR=llvm-ar HOSTCC=clang HOSTCXX=clang++ HOSTLD=ld.lld LD=ld.lld NM=llvm-nm OBJCOPY=llvm-objcopy OBJDUMP=llvm-objdump READELF=llvm-readelf STRIP=llvm-strip
%{make} PYTHON=%{__python3} %{make_targets}
%install