OnePlusOSS / android_kernel_oneplus_sm8250

Other
148 stars 127 forks source link

'soc/oplus/oplus_wakelock_profiler.h' file not found #35

Closed binaryslark closed 1 year ago

binaryslark commented 1 year ago
  CC      kernel/time/alarmtimer.o
../kernel/time/alarmtimer.c:39:10: fatal error: 'soc/oplus/oplus_wakelock_profiler.h' file not found
#include <soc/oplus/oplus_wakelock_profiler.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

Note: i can fix this one with edit line kernel/time/alarmtimer.c:39:10(just like what op8 did), but the other #include <soc/oplus/oplus_wakelock_profiler.h> also cause errors

OnePlusOSSAdmin commented 1 year ago
#ifdef OPLUS_FEATURE_POWERINFO_STANDBY
#include <soc/oplus/oplus_wakelock_profiler.h>

It‘s controled by OPLUS_FEATURE_POWERINFO_STANDBY and this is not enabled. Enabled feature list is oplus_native_features.mk. Before execute make, please export variables in this file.

binaryslark commented 1 year ago

export the oplus_native_features.mk(commands below), it works for me.

set -a
. .\oplus_native_features.mk
set +a