ecryptfs源碼
發布時間: 2022-09-09 23:33:31
Ⅰ 如何把ecryptfs編譯到內核中
下載內核源代碼: git clone http://android.googlesource.com/kernel/goldfish.git
git branch -a 顯示所有分支
選擇分支:
git checkout -b android-goldfish3.4
git checkout remotes/origin/android-goldfish3.4
配置交叉編譯環境:
工具包在 android源代碼目錄的 ./prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin,把它加進環境變數:
export PATH=$PATH:/xxxxxxx/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin
修改內核 主Makefile 文件:
ARCH ?= $(SUBARCH) 改為 ARCH ?= arm
下面的相應的改成 CROSS_COMPILE ?= arm-eabi-
make gold_armv7_defconfig 選擇配置文件
[這里可以使用make menuconfig 配置內核, 如果缺少包需要
sudo apt-get install libncurses5-dev
對於配置eCryptfs,需要
security options --> Enable accesskey retention support
--> ENCRYPTED KEYS
filesystem --> Miscellaneous filesystem --> eCryptfs ...layer
]
最後 make
熱點內容