From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TaiC0-0000xl-OL for barebox@lists.infradead.org; Tue, 20 Nov 2012 07:24:26 +0000 Date: Tue, 20 Nov 2012 08:24:22 +0100 From: Sascha Hauer Message-ID: <20121120072422.GY10369@pengutronix.de> References: <1353144361-9089-1-git-send-email-antonynpavlov@gmail.com> <1353144361-9089-4-git-send-email-antonynpavlov@gmail.com> <20121119103037.GR10369@pengutronix.de> <20121119120701.GW10369@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH 3/3] ARM: start-pbl.c: unificate path to lib/decompress_*.c To: Antony Pavlov Cc: barebox@lists.infradead.org On Mon, Nov 19, 2012 at 04:37:38PM +0400, Antony Pavlov wrote: > >> The files decompress_inflate.c and decompress_unlzo.c are in the same > >> directory. Why we use different prefixes to address them? > > > > I understand the patch and why it's correct. I just wondered why it > > works correctly without this patch. > > > > ls arch/arm/cpu/../../../../lib/decompress_inflate.c > > ls: cannot access arch/arm/cpu/../../../../lib/decompress_inflate.c: No such file or directory > > > > This is correct, we only have to go three directories up. Still it > > compiles fine. > > IMHO we use very many '-I' options when running C compiler. Some of > them make possible to include the decompres-related files with the > '../../../../' prefix, > the other ones make possible to use '../../../'. I wasn't aware that files included with "" also evaluate the -i options. Applied, thanks. Sascha -- 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 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox