On Sun, Nov 2, 2008 at 6:42 PM, David McCullough wrote:
> Jivin Mike Frysinger lays it down ...
>> On Sun, Nov 2, 2008 at 6:17 PM, David McCullough wrote:
>> > Would be nice if it could/did use the code in "flat.h" and "asm/flat.h"
>> > to do the reloc addr thing, gets rid of the BF ifdef and will then also
>> > work for MB and more.
>> >
>> > The flat_get_relocate_addr(...) should already be there shouldn't it ?
>>
>> that would be nice indeed ... i guess we want to start exporting
>> asm/flat.h to userspace ?  that would of course force people to use
>> latest kernel headers and generally the uClinux guys like to support
>> everyone ... plus, we want asm/flat.h from the target rather than the
>> build system ...
>
> Yep,  just a few issues with that idea ;-)

just mirror the structure locally ?
flat.h -> include/linux/flat.h
include/asm-blackfin/flat.h
include/asm-m32r/flat.h
....
and then we make an include/flat.h that does the ugly multiplexing:
#ifdef TARGET_bfin
#include "asm-blackfin/flat.h"
#elif defined(TARGET_m32r)
#include "asm-m32r/flat.h"
...
#endif
#include "linux/flat.h"
-mike
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to