This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] crosstool + linux-libc-headers (was Re: problem with compiling for sh3eb)



Maybe I should have changed the subject line way back...


I did use LINUX_SANITIZED_HEADER_DIR, and made crosstool accept either LINUX_DIR or the former. Crosstool will complain only if neither is set, will warn when both are set, and defaults to the sanitized ones in that case. The patch is open for comments, of course.

We need to be able to allow both because otherwise all.sh can't test whether the linux kernel builds.

Oh, ok. Did not know all.sh attempted a kernel build - all.sh never got further than "Please set /proc/sys/net/ipv4/tcp_tw_recycle to 1", and I never bothered to do so :)


Ok, so I will assume the following:

- all.sh will abort when either one is missing
How about when all.sh is called with the --notest option? If L*SANITIZED*DIR is set, we might require LINUX_DIR for testing purposes only, thereby avoiding the need to download another 30MB if the user is not interested in the test. (However, chances are about 99% the user will want the kernel sources anyway)


- crosstool.sh will still accept either one and use the sanitized headers if both are supplied
Since crosstool.sh only needs one of the two for the build, there is no use in requiring both.


- getandpatch.sh will just download whatever environment variables are provided
Since getandpatch.sh is either called by all.sh or by a user that knows what he is doing, I think there is little harm in leaving out sanity checks here.



Thoughts, anyone?



Arno



np: Beatles - Here Comes The Sun


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]