From 080ccd95e97de18d1b5d1d6a69d31cb962e6c6da Mon Sep 17 00:00:00 2001 From: Pratham Patel Date: Sun, 8 Oct 2023 18:27:00 +0530 Subject: [PATCH] build uncompressed ARM64 image for OPi5 since vendor's uboot is from 2017(!) and its "booti" supports only uncompressed kernel image --- master.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/master.inc b/master.inc index cd38989..a0f2b40 100644 --- a/master.inc +++ b/master.inc @@ -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