lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 8 Sep 2011 21:22:05 -0400
From:	Arnaud Lacombe <lacombar@...il.com>
To:	Nicolas Pitre <nico@...xnic.net>
Cc:	linux-kbuild@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
	lkml <linux-kernel@...r.kernel.org>
Subject: Re: [RFC] Kbuild: allow code re-use across different directories

Hi,

On Thu, Sep 8, 2011 at 4:33 PM, Nicolas Pitre <nico@...xnic.net> wrote:
> On Thu, 8 Sep 2011, Arnaud Lacombe wrote:
>
>> you missed:
>>
>>  # Make sure files are removed during clean
>> -extra-y       += piggy.gzip piggy.lzo piggy.lzma lib1funcs.S
>> +extra-y       += piggy.gzip piggy.lzo piggy.lzma
>>
>> This confused make.
>
> Well... that was suttle.
>
he, welcome to make(1) world :)

> So yes, your patch may certainly be useful to a couple cases, and it
> works fine for this lib1func.S.
>
> It doesn't help me much in the following situation though.  What I
> actually want to achieve is to compile arch/arm/boot/compressed/fdt_rw.o
> from scripts/dtc/libfdt/fdt_rw.c, however I want it to include my local
> version of libfdt_env.h rather than scripts/dtc/libfdt/libfdt_env.h.  I
> still haven't found a way to convince gcc to do that.
>
The only choice you have in gcc, is to use -I-, to construct:

 $(CROSS_COMPILE)gcc -I$(srctree)/arch/arm/boot/compressed -I- [...]

however, it's been marked as deprecated, but still usable as of today
snapshot of 4.7.0. Its replacement, -iquote, do not provide this
functionnality, that is to override the source file origin directory
as search directory for #include "...".

 - Arnaud


> Nicolas
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ