openwrt添加autoconf-archive
发布日期:2021-05-07 15:56:22 浏览次数:14 分类:原创文章

本文共 2730 字,大约阅读时间需要 9 分钟。

openwrt默认会有autoconf、automake,但是没有autoconf-archive。
在编译外置包时可能需要使用autoconf-archive,以下是添加autoconf-archive步骤。


修改tools/Makefile


修改tools/Makfile添加autoconf-archive编译路径


	tools-$(BUILD_TOOLCHAIN) += gmp mpfr mpc libelf expat-	tools-y += m4 libtool autoconf automake flex bison pkg-config mklibs zlib+	tools-y += m4 libtool autoconf autoconf-archive automake flex bison pkg-config mklibs zlib	tools-y += sstrip make-ext4fs e2fsprogs mtd-utils mkimage	tools-y += firmware-utils patch-image quilt padjffs2	tools-y += mm-macros missing-macros cmake scons bc findutils gengetopt patchelf	tools-y += mtools dosfstools libressl	tools-$(CONFIG_TARGET_orion_generic) += wrt350nv2-builder upslug2	tools-$(CONFIG_TARGET_x86) += qemu	tools-$(CONFIG_TARGET_mxs) += elftosb sdimage	tools-$(CONFIG_TARGET_ar71xx) += lzma-old squashfs	tools-$(CONFIG_USES_MINOR) += kernel2minor	tools-y += lzma squashfs4	tools-$(BUILD_B43_TOOLS) += b43-tools	tools-$(BUILD_ISL) += isl 	tools-$(CONFIG_USE_SPARSE) += sparse	tools-$(CONFIG_TARGET_apm821xx) += genext2fs	# builddir dependencies	$(curdir)/bison/compile := $(curdir)/flex/compile	$(curdir)/flex/compile := $(curdir)/libtool/compile	$(curdir)/libtool/compile := $(curdir)/m4/compile $(curdir)/autoconf/compile $(curdir)/automake/compile $(curdir)/missing-macros/compile	$(curdir)/squashfs/compile := $(curdir)/lzma-old/compile	$(curdir)/squashfs4/compile := $(curdir)/xz/compile $(curdir)/zlib/compile	$(curdir)/quilt/compile := $(curdir)/autoconf/compile $(curdir)/findutils/compile	$(curdir)/autoconf/compile := $(curdir)/m4/compile+	$(curdir)/autoconf-archive/compile := $(curdir)/m4/compile $(curdir)/autoconf/compile	$(curdir)/automake/compile := $(curdir)/m4/compile $(curdir)/autoconf/compile $(curdir)/pkg-config/compile $(curdir)/xz/compile

添加autoconf-archive软件包


进入tools目录创建autoconf-archive文件夹,进入autoconf-archive创建Makefile


cd toolsmkdir autoconf-archivecd autoconf-archivetouch Makefile

Makefile内容如下


## Copyright (C) 2006-2015 OpenWrt.org## This is free software, licensed under the GNU General Public License v2.# See /LICENSE for more information.#include $(TOPDIR)/rules.mkPKG_NAME:=autoconf-archivePKG_VERSION:=2013.11.01PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xzPKG_SOURCE_URL:=@GNU/autoconf-archivePKG_MD5SUM:=f01381c7d3570cf3fcf65093989e0d29include $(INCLUDE_DIR)/host-build.mkHOST_CONFIGURE_ARGS += \	--datarootdir=$(STAGING_DIR_HOST)/sharedefine Host/Compile	export SHELL="$(BASH)"; $(MAKE) -C $(HOST_BUILD_DIR)endefdefine Host/Install	export SHELL="$(BASH)"; $(MAKE) -C $(HOST_BUILD_DIR) installendefdefine Host/Clean	-export SHELL="$(BASH)"; $(MAKE) -C $(HOST_BUILD_DIR) uninstall	$(call Host/Clean/Default)endef$(eval $(call HostBuild))

编译


make tools/autoconf-archive/{clean,compile} V=s
上一篇:openwrt使用tayga/totd实现NAT64/DNS64
下一篇:openthread编译错误:error: could not find ctags

发表评论

最新留言

网站不错 人气很旺了 加油
[***.192.178.218]2025年04月04日 20时18分45秒