![커널 모듈 컴파일 실패: 대상 droid/sunxi-livesuite-master/awusb''를 만드는 규칙이 없습니다.](https://linux55.com/image/112214/%EC%BB%A4%EB%84%90%20%EB%AA%A8%EB%93%88%20%EC%BB%B4%ED%8C%8C%EC%9D%BC%20%EC%8B%A4%ED%8C%A8%3A%20%EB%8C%80%EC%83%81%20droid%2Fsunxi-livesuite-master%2Fawusb''%EB%A5%BC%20%EB%A7%8C%EB%93%9C%EB%8A%94%20%EA%B7%9C%EC%B9%99%EC%9D%B4%20%EC%97%86%EC%8A%B5%EB%8B%88%EB%8B%A4..png)
awusb.ko
Linux Mint에서 컴파일하려고 합니다.make
make -v
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
Dies ist Freie Software; siehe die Programmquellen für Vervielfältigungsbedingungen.
이것 makefile
:
obj-m := awusb.o
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
default:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
clean:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) clean
rm -rf Module.markers module.order module.sysvers
make
중지 장소:
makemake -C /lib/modules/3.19.0-32-generic/build SUBDIRS=/home/ger/progentp/Flash droid/sunxi-livesuite-master/awusb modules
make[1]: Verzeichnis »/usr/src/linux-headers-3.19.0-32-generic« wird betreten
Makefile:669: Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler
make[1]: *** Keine Regel, um »droid/sunxi-livesuite-master/awusb« zu erstellen. Schluss.
make[1]: Verzeichnis »/usr/src/linux-headers-3.19.0-32-generic« wird verlassen
make: *** [default] Fehler 2
제 생각에는 블록을 obj-m := awusb.o
쌓는 데에는 awusb.ko
규칙이 있습니다 . 도움이 필요하세요?
답변1
문제는 /home/ger/progentp/Flash droid/
폴더 이름에서 공백을 제거하거나 git clone을 공백 없이 다른 위치로 옮기는 것입니다.