|  | 
 | include $(COMMON_BASE_MK) | 
 |  | 
 | NAME := libwolfssl | 
 | SRC_DIR := wolfssl-4.8.1-stable | 
 | INSTALL_DIR := $(LIB_DIR)/$(NAME)/install | 
 |  | 
 | CONFIG_OPTS := --host=arm-linux --build=x86_64-unknown-linux-gnu --target=arm-linux | 
 | CONFIG_OPTS += --prefix=$(INSTALL_DIR) | 
 | CONFIG_OPTS += --disable-shared --enable-static | 
 | CONFIG_OPTS += --disable-nls | 
 | CONFIG_OPTS += --enable-reproducible-build | 
 | CONFIG_OPTS += --enable-lighty | 
 | CONFIG_OPTS += --enable-opensslall | 
 | CONFIG_OPTS += --enable-opensslextra | 
 | CONFIG_OPTS += --enable-sni | 
 | CONFIG_OPTS += --enable-stunnel | 
 | CONFIG_OPTS += --disable-crypttests | 
 | CONFIG_OPTS += --disable-examples | 
 | CONFIG_OPTS += --disable-jobserver | 
 | CONFIG_OPTS += --enable-ipv6 | 
 | CONFIG_OPTS += --enable-aesccm | 
 | CONFIG_OPTS += --enable-certgen | 
 | CONFIG_OPTS += --enable-chacha | 
 | CONFIG_OPTS += --enable-poly1305 | 
 | CONFIG_OPTS += --enable-dh | 
 | CONFIG_OPTS += --enable-arc4 | 
 | CONFIG_OPTS += --enable-tlsv10 | 
 | CONFIG_OPTS += --enable-tls13 | 
 | CONFIG_OPTS += --enable-session-ticket | 
 | CONFIG_OPTS += --disable-dtls | 
 | CONFIG_OPTS += --disable-curve25519 | 
 | CONFIG_OPTS += --disable-afalg | 
 | CONFIG_OPTS += --enable-devcrypto=no | 
 | CONFIG_OPTS += --enable-ocsp | 
 | CONFIG_OPTS += --enable-ocspstapling | 
 | CONFIG_OPTS += --enable-ocspstapling2 | 
 | CONFIG_OPTS += --enable-wpas | 
 | CONFIG_OPTS += --enable-fortress | 
 | CONFIG_OPTS += --enable-fastmath | 
 | CONFIG_OPTS += --disable-sslv3 | 
 | CONFIG_OPTS += --disable-armasm | 
 |  | 
 |  | 
 | all: $(SRC_DIR)/Makefile | 
 | 	make -C $(SRC_DIR) | 
 | 	make -C $(SRC_DIR) install | 
 |  | 
 | $(SRC_DIR)/Makefile: | 
 | 	cd $(SRC_DIR) && ./autogen.sh | 
 | 	cd $(SRC_DIR) && ./configure C_EXTRA_FLAGS="-g1" $(CONFIG_OPTS) | 
 |  | 
 | clean: | 
 | 	-make -C $(SRC_DIR) distclean | 
 | 	-rm -rf $(INSTALL_DIR) | 
 |  | 
 | romfs: | 
 | 	cd $(INSTALL_DIR)/lib; \ | 
 | 	for i in *.so*; do \ | 
 | 		if [ -L $$i ]; then \ | 
 | 			$(ROMFSINST) -s `find $$i -printf %l` /lib/$$i; \ | 
 | 		elif [ -f $$i ]; then \ | 
 | 			$(ROMFSINST) /lib/$$i; \ | 
 | 		fi; \ | 
 | 	done | 
 |  |