Skip to content

Instantly share code, notes, and snippets.

@dan-v
Created September 5, 2019 07:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dan-v/22977fe5b7d4fbb44686bdaa9e7b4164 to your computer and use it in GitHub Desktop.
Save dan-v/22977fe5b7d4fbb44686bdaa9e7b4164 to your computer and use it in GitHub Desktop.
RUNNING:
```
export PATH="${BUILD_DIR}/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin:${PATH}";
export PATH="${BUILD_DIR}/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin:${PATH}";
export PATH="${BUILD_DIR}/prebuilts/misc/linux-x86/lz4:${PATH}";
export PATH="${BUILD_DIR}/prebuilts/misc/linux-x86/dtc:${PATH}";
export PATH="${BUILD_DIR}/prebuilts/misc/linux-x86/libufdt:${PATH}";
ln --verbose --symbolic ${KEYS_DIR}/${DEVICE}/verity_user.der.x509 ${MARLIN_KERNEL_SOURCE_DIR}/verity_user.der.x509;
cd ${MARLIN_KERNEL_SOURCE_DIR};
echo PATH=$PATH;
make ARCH=arm64 marlin_defconfig;
make -j$(nproc --all) ARCH=arm64 CROSS_COMPILE=aarch64-linux-android- CROSS_COMPILE_ARM32=arm-linux-androideabi-
```
ERROR:
```
LD drivers/platform/msm/ipa/built-in.o
LD drivers/platform/msm/built-in.o
LD drivers/platform/built-in.o
drivers/thermal/thermal_core.c:44:26: fatal error: ../base/base.h: No such file or directory
#include <../base/base.h>
^
compilation terminated.
scripts/Makefile.build:257: recipe for target 'drivers/thermal/thermal_core.o' failed
make[2]: *** [drivers/thermal/thermal_core.o] Error 1
scripts/Makefile.build:402: recipe for target 'drivers/thermal' failed
make[1]: *** [drivers/thermal] Error 2
make[1]: *** Waiting for unfinished jobs....
Makefile:964: recipe for target 'drivers' failed
make: *** [drivers] Error 2
root@android-prepare-vendor:~/kernel/google/marlin# git status
On branch android-msm-marlin-3.18-android10
```
@dan-v
Copy link
Author

dan-v commented Feb 26, 2020

@cererdlong - got a notification that you commented on this. I believe the fix for this was to specify an output directory (https://github.com/dan-v/rattlesnakeos-stack/blob/1ef2948b58782993cb4515a88e80a0c100842631/templates/build_template.go#L964)

@cererdlong
Copy link

I added "O" and then everything works fine.
THANK-YOU

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment