套件名稱: usb_modeswitch
官網下載: http://www.draisberghof.de/usb_modes....html#download
必要的相依性套件
編輯 Makefile
PROG = usb_modeswitch VERS = 1.2.5 CC = sh4-linux-gcc <===改這裡 CFLAGS += -Wall LIBS = -L/opt/STM/STLinux-2.3/devkit/sh4/target/usr/lib -l usb <===改這裡 RM = /bin/rm -f OBJS = usb_modeswitch.c PREFIX = $(DESTDIR)/usr ETCDIR = $(DESTDIR)/etc UDEVDIR = $(DESTDIR)/lib/udev SBINDIR = $(PREFIX)/sbin MANDIR = $(PREFIX)/share/man/man1 VPATH = jimtcl
開始編譯
make install DESTDIR=/home/alang/my_stm/build_opt/usb-modeswitch
install -D -s --mode=755 usb_modeswitch /home/alang/my_stm/build_opt/usb-modeswitch/usr/sbin/usb_modeswitch
strip: Unable to recognise the format of the input file `/home/alang/my_stm/build_opt/usb-modeswitch/usr/sbin/usb_modeswitch'
install: strip process terminated abnormally
make: *** [install-common] Error 1
Ans: 編輯 Makefile,將 install -D -s 的 -s 刪除。
Images 0 | ||
---|---|---|
No images to display in the gallery. |