android_kernel_samsung_exynos9610_mint icon indicating copy to clipboard operation
android_kernel_samsung_exynos9610_mint copied to clipboard

Adding the O variable to the make command creates an error in the build.

Open p-dial8891 opened this issue 2 years ago • 0 comments

I updated the build.sh script by adding 'O=.output' to the make commands. It was to make the build output the generated files into a '.output' directory

  •   make -C $(pwd) O=.output CC=${BUILD_PREF_COMPILER} LD=ld.lld AR=llvm-ar NM=llvm-nm OBJCOPY=llvm-objcopy OBJDUMP=llvm-objdump STRIP=llvm-strip ${BUILD_DEVICE_TMP_CONFIG} LOCALVERSION="${LOCALVERSION}" 2>&1 | sed 's/^/     /'
    
  •   make -C $(pwd) O=.output CC=${BUILD_PREF_COMPILER} LD=ld.lld AR=llvm-ar NM=llvm-nm OBJCOPY=llvm-objcopy OBJDUMP=llvm-objdump STRIP=llvm-strip -j$(nproc --all) LOCALVERSION="${LOCALVERSION}" 2>&1 | sed 's/^/     /'
    

build.sh.txt

I got the following error at the output:

     AR      drivers/usb/built-in.o
     AR      drivers/built-in.o
   make[1]: Leaving directory '/home/philip/Projects/pmOS/mint9610test/android_kernel_samsung_exynos9610_mint/.output'
   make: *** [Makefile:146: sub-make] Error 2
   make: Leaving directory '/home/philip/Projects/pmOS/mint9610test/android_kernel_samsung_exynos9610_mint'
E: Image not built!
   Errors can be fround from above.

The intention is to have the build script use the kernel makefiles option to generate the output files into a separate directoy - 'O=<dir -name>''.

Can the build scripts be modified to do this?

p-dial8891 avatar Sep 17 '23 18:09 p-dial8891