openwrt中在软件包中定义PKG_INSTALL将会发生什么?
答: 将会使用默认软件包安装方式,相关代码如下
1. 在include/package.mk中: Build/Install=$(if $(PKG_INSTALL),$(call Build/Install/Default,))
2. 在include/package-defaults.mk中: define Build/Install/Default $(MAKE_VARS) \ $(MAKE) -C $(PKG_BUILD_DIR)/$(MAKE_PATH) \ $(MAKE_INSTALL_FLAGS) \ $(if $(1), $(1), install); endef