From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:6f8:1178:2:5054:ff:fec0:8e10] ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1WvKi7-0005ds-Og for ptxdist@pengutronix.de; Fri, 13 Jun 2014 08:11:35 +0200 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.80) (envelope-from ) id 1WvKi7-0007ji-NG for ptxdist@pengutronix.de; Fri, 13 Jun 2014 08:11:35 +0200 Date: Fri, 13 Jun 2014 08:11:35 +0200 From: Michael Olbrich Message-ID: <20140613061135.GE23595@pengutronix.de> References: <244f27ed76ffbc8a46236c86fff748e4@idefix.lespocky.dyndns.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <244f27ed76ffbc8a46236c86fff748e4@idefix.lespocky.dyndns.org> Subject: Re: [ptxdist] opkg: wget/curl dependencies Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Hi, On Thu, Jun 12, 2014 at 02:18:11PM +0200, Alexander Dahl wrote: > while testing some things with wget I noticed it's possible to configure > ptxdist in a way opkg on the target get's useless. I can unset all of > BUSYBOX_WGET, WGET and OPKG_CURL so opkg can not fetch lists and > packages anymore. Well, you can still install packages provided e.g. with a USB stick, or something like that. > I played with the "select" statement of kconfig but > couldn't figure out a way to set a dependency like "any of those three > but at least one" (which is probably even more complicated because both > wget variants exclude each other). Is it possible to handle such > dependencies with kconfig and how? maybe something like this: config OPKG_DOWNLOAD bool prompt "make sure opkg can download something" select WGET if RUNTIME && !OPKG_CURL && !BUSYBOX_WGET Michael -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- ptxdist mailing list ptxdist@pengutronix.de