How to add a new package into BuildRoot

本文详细介绍了如何将opkg包添加到BuildRoot环境,包括文档阅读、目录创建、配置文件修改等步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

It is easy to add a new package to BuiltRoot, here I want to add opkg to BuildRoot

1. read the documents in the builtroot-2012.02/docs/manual/adding-packages-*

2. add a new directory in the builtroot-2012.02/package, name it as opkg

#mkdir builtroot-2012.02/package/opkg
3. add Config.in in the builtroot-2012.02/package/opkg

#gedit builtroot-2012.02/package/opkg/Config.in
config BR2_PACKAGE_OPKG
	bool "opkg"
	help
	  Opkg is a lightweight package management system based on Ipkg.

	  http://code.google.com/p/opkg/

4. add opkg.mk in the the builtroot-2012.02/package/opkg

#gedit the builtroot-2012.02/package/opkg/opkg.mk
#############################################################
#
# opkg
#
#############################################################
OPKG_VERSION = 0.1.8
OPKG_SOURCE = opkg-$(OPKG_VERSION).tar.gz
OPKG_SITE = http://opkg.googlecode.com/files/
OPKG_AUTORECONF = NO
OPKG_INSTALL_STAGING = YES
OPKG_INSTALL_TARGET = YES
OPKG_CONF_OPT = --disable-pgp
$(eval $(call AUTOTARGETS))

5. modify Config.in in builtroot-2012.02/package

add "source "package/opkg/Config.in"" in line 530

6. return to directory builtroot-2012.02, make menuconfig again to enable theopkg

 #make menuconfig

Package Selection for the target -> Package managers -> opkg

7. make the buildroot again

 #make 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值