Fenix build error (make[4]: *** No rule to make target 'drivers/amlogic/power/sec_pwr_ctrl.o', needed by 'drivers/amlogic/power/built-in.o'. Stop.)

During linux 4.9 build for VIM3 using the following parameters I get the following fatal error - make[4]: *** No rule to make target ‘drivers/amlogic/power/sec_pwr_ctrl.o’, needed by ‘drivers/amlogic/power/built-in.o’. Stop.

Any ideas how to resolve it?

Thanks!

PARAMETERS*
Fenix Version: 1.0
Khadas Board: VIM3
Uboot Version: 2015.01
Uboot Configuration: kvim3_defconfig
Uboot Branch: khadas-vims-v2015.01
Linux Version: 4.9
Linux Configuration: kvims_defconfig
Linux DTB: arch/arm64/boot/dts/amlogic/kvim3_linux.dtb
Linux Branch: khadas-vims-4.9.y
Distribution: Ubuntu
Distribution Release: bionic
Distribution Type: minimal
Distribution Arch: arm64
Install Type: EMMC
Final Image: VIM3_Ubuntu-minimal-bionic_Linux-4.9_arm64_EMMC_V1.0-210113.img


Output from build

Info: Build linux…
make[1]: Entering directory ‘/home/mark/Projects/VIM3/fenix/linux’
drivers/net/wireless/bcmdhd/Kconfig:53:warning: defaults for choice values not supported

configuration written to .config

make[1]: Leaving directory ‘/home/mark/Projects/VIM3/fenix/linux’
make[1]: Entering directory ‘/home/mark/Projects/VIM3/fenix/linux’
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/net/wireless/bcmdhd/Kconfig:53:warning: defaults for choice values not supported
CHK include/config/kernel.release
CHK include/config/kernel.release_full
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CHK scripts/mod/devicetable-offsets.h
CHK include/generated/timeconst.h
CHK include/generated/bounds.h
CHK include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
GZIP kernel/config_data.gz
CHK kernel/config_data.h
make[4]: *** No rule to make target ‘drivers/amlogic/power/sec_pwr_ctrl.o’, needed by ‘drivers/amlogic/power/built-in.o’. Stop.
make[3]: *** [scripts/Makefile.build:648: drivers/amlogic/power] Error 2
make[2]: *** [scripts/Makefile.build:648: drivers/amlogic] Error 2
make[2]: *** Waiting for unfinished jobs…
make[1]: *** [Makefile:1118: drivers] Error 2
make[1]: *** Waiting for unfinished jobs…
make[1]: Leaving directory ‘/home/mark/Projects/VIM3/fenix/linux’
make: *** [Makefile:5: all] Error 2

Hello @markb

Thanks for your feedback.

I have send a patch to resolve this issue. Please try again.

2 Likes

Thanks @numbqq for the fast response.

Issue is resolved.