自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

在內(nèi)核頂層Makefile中增加軟鏈接

系統(tǒng) Linux
由于最新內(nèi)核頭文件位置的改變,一些原有的驅(qū)動(dòng)所包含的頭文件會找不到,為了肢解使用舊有的驅(qū)動(dòng)而不做太大改動(dòng),可以增加一個(gè)軟連接......

由于***內(nèi)核頭文件位置的改變,一些原有的驅(qū)動(dòng)所包含的頭文件會找不到,為了肢解使用舊有的驅(qū)動(dòng)而不做太大改動(dòng),可以增加一個(gè)軟連接:

cd ../include/asm-arm/

ln -sf ../../arch/arm/mach-lpc32xx/include/mach/ arch

將arch/arm/mach-lpc32xx/include/mach/鏈接為include/asm-arm/arch,即

include/asm-arm/arch-->arch/arm/mach-lpc32xx/include/mach

這樣,原有驅(qū)動(dòng)中#include <mach/xxx.h>就可以使用了。

可以在編譯之前手工建立這個(gè)鏈接,但是,一旦make distclean,這個(gè)手工建立的鏈接就會被清除掉,下次還得繼續(xù)手工建立。這樣很麻煩,為了方便,可以直接修改內(nèi)核頂層的Makefile文件,增加藍(lán)色部分的語句:

980 # We create the target directory of the symlink if it does

981 # not exist so the test in chack-symlink works and we have a

982 # directory for generated filesas used by some architectures.

983 define create-symlink

984     if [ ! -L include/asm ]; then                              \

985             echo '  SYMLINK $@ -> include/asm-$(SRCARCH)';     \

986             if [ ! -d include/asm-$(SRCARCH) ]; then           \

987                 mkdir -p include/asm-$(SRCARCH);           \

988             fi;                                                \

989             ln -fsn asm-$(SRCARCH) $@;                         \

990     fi

991     if [ ! -L include/asm-arm/arch ]; then \

992         cd $(TOPDIR)/include/asm-arm;\

993         ln -fs ../../arch/arm/mach-lpc32xx/include/mach  arch; \

994         cd $(TOPDIR)/; \

995     fi

996 endef

這樣,在Make的時(shí)候就會自動(dòng)建立這個(gè)軟連接了。

【編輯推薦】

  1. 探索Linux內(nèi)核虛擬機(jī)——學(xué)習(xí)KVM架構(gòu)及其優(yōu)點(diǎn)
  2. Linux下用gdb檢測內(nèi)核rootkit的方法
  3. Linux內(nèi)核中的DeviceMapper機(jī)制
責(zé)任編輯:趙寧寧 來源: chinaitlab
相關(guān)推薦

2021-03-08 11:47:34

內(nèi)核Linux內(nèi)核模塊

2010-02-25 15:11:48

Linux Makef

2010-03-01 16:40:40

Linux Makef

2011-06-03 09:26:11

2011-08-16 16:20:33

Linuxkconfigmakefile

2017-02-27 16:22:52

2023-11-15 08:27:46

Linux系統(tǒng)

2020-06-01 19:00:42

Linux軟鏈接硬鏈接

2010-02-24 16:01:39

Linux Makef

2021-12-15 10:02:25

鴻蒙HarmonyOS應(yīng)用

2011-05-10 10:58:00

反向鏈接SEO

2022-10-21 08:18:54

Linuxln 命令

2010-02-25 17:56:39

Linux操作系統(tǒng)

2011-05-24 15:48:24

linux軟路由路由

2021-08-10 16:50:37

內(nèi)核內(nèi)存管理

2021-06-18 08:15:37

Linux軟鏈接硬鏈接

2011-04-25 09:20:05

Linux內(nèi)核

2011-06-13 18:07:57

反向鏈接

2011-06-23 15:56:46

反向鏈接

2018-02-24 12:17:56

C程序內(nèi)存方式
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號