[T106][ZXW-22]7520V3SCV2.01.01.02P42U09_VEC_V0.8_AP_VEC origin source commit
Change-Id: Ic6e05d89ecd62fc34f82b23dcf306c93764aec4b
diff --git a/ap/lib/libnl/Makefile b/ap/lib/libnl/Makefile
new file mode 100755
index 0000000..b73ca8c
--- /dev/null
+++ b/ap/lib/libnl/Makefile
@@ -0,0 +1,37 @@
+
+include $(COMMON_BASE_MK)
+
+NAME=libnl
+SRC_DIR=libnl-3.2.25
+INSTALL_DIR=$(LIB_DIR)/$(NAME)/install
+BUILD_DIR=build
+GEN_MAKEFILE=$(BUILD_DIR)/Makefile
+
+CONFIG_OPTS = --target=arm-linux --host=arm-linux
+#CONFIG_OPTS += --enable-shared
+
+all: $(GEN_MAKEFILE)
+ make -C build all
+ make -C build install
+
+$(GEN_MAKEFILE):
+ mkdir -p $(BUILD_DIR)
+ cd $(SRC_DIR); touch configure.ac aclocal.m4 configure Makefile.am Makefile.in
+ cd $(BUILD_DIR); ../$(SRC_DIR)/configure --prefix=$(INSTALL_DIR) $(CONFIG_OPTS)
+
+clean:
+ -rm -fr $(BUILD_DIR) $(INSTALL_DIR)
+
+romfs:
+ $(ROMFSINST) $(INSTALL_DIR)/lib/libnl-genl-3.so.200.20.0 /lib/
+ $(ROMFSINST) -s libnl-genl-3.so.200.20.0 /lib/libnl-genl-3.so.200
+ $(ROMFSINST) -s libnl-genl-3.so.200.20.0 /lib/libnl-genl-3.so
+ $(ROMFSINST) $(INSTALL_DIR)/lib/libnl-3.so.200.20.0 /lib/
+ $(ROMFSINST) -s libnl-3.so.200.20.0 /lib/libnl-3.so.200
+ $(ROMFSINST) -s libnl-3.so.200.20.0 /lib/libnl-3.so
+
+populate_sdk:
+ cp -afvp $(INSTALL_DIR)/include/* $(CROSS_COMPILE_SYSROOT)/usr/include/
+ cp -afvp $(INSTALL_DIR)/lib/* $(CROSS_COMPILE_SYSROOT)/usr/lib/
+ cp -afvp $(INSTALL_DIR)/sbin/* $(CROSS_COMPILE_SYSROOT)/usr/bin/
+