Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Make fails while compiling the module from scratch #5

Open
yogeshbabar420 opened this issue Dec 19, 2022 · 1 comment
Open

[BUG] Make fails while compiling the module from scratch #5

yogeshbabar420 opened this issue Dec 19, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@yogeshbabar420
Copy link

Describe the issue
Make fails with the below mentioned error whenever try to compile the module for AutoSD kernel:

make[1]: *** No rule to make target 'arch/arm64/tools/gen-cpucaps.awk', needed by 'arch/arm64/include/generated/asm/cpucaps.h'. Stop.
make: *** [arch/arm64/Makefile:178: archprepare] Error 2
make[1]: *** No rule to make target 'arch/arm64/tools/gen-cpucaps.awk', needed by 'arch/arm64/include/generated/asm/cpucaps.h'. Stop.
make: *** [arch/arm64/Makefile:178: archprepare] Error 2

Please note that I am not using nVidia JetPack rather I am using AutoSD - https://sig.centos.org/automotive/

What version of L4T/JetPack
L4T/JetPack version: As mentioned earlier I am not using a JetPack kernel rather I am using a AutoSD kernel of Red Hat.
The kernel is in use is - kernel-automotive-5.14.0-212.176.el9iv.aarch64

Which Jetson
Jetson: nvidia-jetson-xavier-nx

To Reproduce
Steps to reproduce the behavior:

Use the source code of the mentioned kernel -
and run :

./build-module.sh

make[1]: *** No rule to make target 'arch/arm64/tools/gen-cpucaps.awk', needed by 'arch/arm64/include/generated/asm/cpucaps.h'. Stop.
make: *** [arch/arm64/Makefile:178: archprepare] Error 2
make[1]: *** No rule to make target 'arch/arm64/tools/gen-cpucaps.awk', needed by 'arch/arm64/include/generated/asm/cpucaps.h'. Stop.
make: *** [arch/arm64/Makefile:178: archprepare] Error 2

Expected behavior
The module should get built without any issue since the kernel source code and necessary dependencies / environment is present

Additional context
The AutoSD is a development preview of the upcoming Red Hat In-Vehicle Operating System. You can download the source code of the kernel from here - https://gitlab.com/CentOS/automotive/src/kernel/kernel-automotive-9/-/tree/kernel-automotive-5.14.0-212.176.el9iv

@yogeshbabar420 yogeshbabar420 added the bug Something isn't working label Dec 19, 2022
@jetsonhacks
Copy link
Owner

The scripts provided are for building the kernel from NVIDIA provided source code specific to the Jetson. You can use the build files as an outline for your project, but I would not expect them to work without modification. Good luck on your project!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants