Skip to content

Latest commit

 

History

History
34 lines (32 loc) · 1.2 KB

编译注意事项.md

File metadata and controls

34 lines (32 loc) · 1.2 KB

1.glinet的qsdk11 sdk 需要修改include/package-defaults.mk 中的,不然无法识别本地src

Build/Patch:=$(Build/Patch/Default)
ifneq ($(strip $(PKG_UNPACK)),)
  define Build/Prepare/Default
	$(PKG_UNPACK)
	[ ! -d ./src/ ] || $(CP) ./src/. $(PKG_BUILD_DIR)
	$(Build/Patch)
  endef
endif

2.glinet的19.07版本的SDK需要把feeds.conf.default中的19.07.7换成19.07.8,github aciton库已更改,具体根据imagebuilder的版本决定是否更改,3.212需要更改

3.openwrt 21以下的版本不能使用最新的nginx,需要用nginx-19.07版本,ipq_ipq40xx的SDK如果编译nginx-19.07的版本,需要把$(eval $(call BuildPackage,nginx-all-module))注释,不然无法生成nginx-ssl,同理把nginx-ssl和nginx-all-module同时注释才能生成nginx,不然只会生成nginx-all-module

4.qsdk11 /lib/functions/procd.sh缺少

uci_load_validate() {
	local _package="$1"
	local _type="$2"
	local _name="$3"
	local _function="$4"
	local _option
	local _result
	shift; shift; shift; shift
	for _option in "$@"; do
		eval "local ${_option%%:*}"
	done
	uci_validate_section "$_package" "$_type" "$_name" "$@"
	_result=$?
	[ -n "$_function" ] || return $_result
	eval "$_function \"\$_name\" \"\$_result\""
}