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

Need Help with "No rule to make target 'modules_prepare'. Stop" Error #114

Open
ghost opened this issue Sep 18, 2023 · 0 comments
Open

Need Help with "No rule to make target 'modules_prepare'. Stop" Error #114

ghost opened this issue Sep 18, 2023 · 0 comments

Comments

@ghost
Copy link

ghost commented Sep 18, 2023

Hello,

I followed the instructions in the README file, but I encountered an error, as indicated in the title, when executing the make command.

Here are the detailed results for your reference:

root@cbuntu:/Andoid_kernel# make ARCH=arm CROSS_COMPILE=$CC_PATH/arm-eabi- modules_prepare
make: *** No rule to make target 'modules_prepare'. Stop.
root@cbuntu:
/Andoid_kernel# make ARCH=arm CROSS_COMPILE=$CC_PATH/arm-eabi- modules
make: *** No rule to make target 'modules'. Stop.
root@cbuntu:/Andoid_kernel# ls -al
total 212
drwxr-xr-x 2 root root 4096 9월 17 21:17 .
drwx------ 19 root root 4096 9월 17 17:48 ..
-rw------- 1 root root 201093 9월 17 19:02 .config
-rw-r--r-- 1 root root 274 9월 17 21:17 Makefile
root@cbuntu:
/Andoid_kernel# cat ./Makefile
obj-m := lime.o
lime-objs := main.o tcp.o disk.o
KDIR := /root/Andoid_kernel
PWD := $(shell pwd)
CCPATH := /root/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/
default:
$(MAKE) ARCH=arm CROSS_COMPILE=$(CCPATH)/arm-eabi- -C $(KDIR) M=$(PWD) modules
root@cbuntu:/Andoid_kernel# echo $KSRC_PATH
/root/Andoid_kernel
root@cbuntu:
/Andoid_kernel# echo $NDK_PATH
/root/Android/Sdk/ndk/25.2.9519653/
root@cbuntu:/Andoid_kernel# echo $SDK_PATH
/root/Android/Sdk/
root@cbuntu:
/Andoid_kernel# echo $CC_PATH
/root/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/
root@cbuntu:~/Andoid_kernel# echo $LIME_SRC
/root/LiME/src

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants