Skip to content

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

Open
@ghost

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions