oresat / oresat-prucam-ar013x

Linux kernel module and PRU firmware for the Star Tracker's AR013x camera.
GNU General Public License v3.0
3 stars 2 forks source link

Just a note: "make clean all" errors #56

Open Joao-Az opened 3 months ago

Joao-Az commented 3 months ago

Following the instructions in the README.md, in the build kernel module step, I get this error:

/mnt/work/oresat-linux-prucam# make -C src/kernel_module clean all make: Entering directory '/mnt/work/oresat-linux-prucam/src/kernel_module' make[1]: Entering directory '/usr/src/linux-headers-5.10.41-ti-r14' scripts/Makefile.clean:15: /mnt/work/oresat-linux-prucam/Makefile: No such file or directory make[2]: No rule to make target '/mnt/work/oresat-linux-prucam/Makefile'. Stop. make[1]: [Makefile:1831: clean/mnt/work/oresat-linux-prucam] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-5.10.41-ti-r14' make: *** [Makefile:14: clean] Error 2 make: Leaving directory '/mnt/work/oresat-linux-prucam/src/kernel_module'

However the make properly runs from within the '/mnt/work/oresat-linux-prucam/src/kernel_module' directory path:

/mnt/work/oresat-linux-prucam/src/kernel_module# make clean all make[1]: Entering directory '/usr/src/linux-headers-5.10.41-ti-r14' CLEAN /mnt/work/oresat-linux-prucam/src/kernel_module/Module.symvers make[1]: Leaving directory '/usr/src/linux-headers-5.10.41-ti-r14' make -C /lib/modules/uname -r/build M=/mnt/work/oresat-linux-prucam/src/kernel_module modules make[1]: Entering directory '/usr/src/linux-headers-5.10.41-ti-r14' CC [M] /mnt/work/oresat-linux-prucam/src/kernel_module/prucam_main.o CC [M] /mnt/work/oresat-linux-prucam/src/kernel_module/cam_gpio.o CC [M] /mnt/work/oresat-linux-prucam/src/kernel_module/cam_i2c.o CC [M] /mnt/work/oresat-linux-prucam/src/kernel_module/ar013x_sysfs.o LD [M] /mnt/work/oresat-linux-prucam/src/kernel_module/prucam.o MODPOST /mnt/work/oresat-linux-prucam/src/kernel_module/Module.symvers CC [M] /mnt/work/oresat-linux-prucam/src/kernel_module/prucam.mod.o LD [M] /mnt/work/oresat-linux-prucam/src/kernel_module/prucam.ko make[1]: Leaving directory '/usr/src/linux-headers-5.10.41-ti-r14'

Cheers