先編譯open ssl
- patch -p0<wpa_supplicant-0.7.3/patches/openssl-0.9.8i-tls-extensions.patch
- ./Configure linux-elf-arm -DB_ENDIAN linux:'arm-linux-gcc' shared --prefix=$ROOTFS/openssl
- make && make install
接著編譯wpa_supplicant
- 找到Makefile將CC修改為arm-linux-gcc(依照你的toolchain)
- cp defconfig .conf
- 修改.conf中的參數
- CC=arm-linux-gcc -L $(ROOTFS)/openssl/lib/
- CFLAGS += -I$(ROOTFS)/openssl/include/
- LIBS += -L$(ROOTFS)/openssl/lib/
- make
沒有留言:
張貼留言