
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
发表评论
最新留言
网站不错 人气很旺了 加油
[***.192.178.218]2025年04月04日 20时18分45秒
关于作者

喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!
推荐文章
JSP,EL 和 JSTL 一篇文章就够了
2019-03-04
(延迟初始化)Lazy 初始化
2019-03-04
(SpringMVC)springMVC.xml 和 web.xml
2019-03-04
Oracle 学习一篇文章就够了(珍藏版)
2019-03-04
一篇文章带你搞定 Oracle 的体系结构
2019-03-04
Oracle 单行函数
2019-03-04
(Java 剑指 offer)剪绳子
2019-03-04
一篇文章带你搞定 OAuth 2.0 的四种方式
2019-03-04
一篇文章带你搞定 Spring Security 的登录流程
2019-03-04
一篇文章带你搞定官方推荐 Stack 的替代品 双端队列 Deque
2019-03-04
一篇文章带你搞定 SpringSecurity 和 OAuth2 的结合使用
2019-03-04
一篇文章带你搞定并发多线程里的 ThreadLocal
2019-03-04
(LeetCode)Java 求解搜索旋转排序数组
2019-03-04
(模拟数组)Java 求解螺旋矩阵 II
2019-03-04
Burpsuite-02-设置JVM内存大小与解决页面显示文字乱码错误
2019-03-04
爬取网页时调用tostring()中文乱码("&#数字;")解决方案
2019-03-04
Python学习:字符串
2019-03-04
Python学习:继承
2019-03-04
Python学习:类、类对象和实例对象
2019-03-04