From: Dmitry V. L. <ld...@al...> - 2015-01-22 02:21:09
|
Hi, I've just pushed commit v4.9-222-gdf7aa2b that implements 32-bit ioctl command decoding. It has been tested with "make check" on arm oabi, arm eabi, mips, mipsel, powerpc, powerpc64, sparc, x86, and x86_64. There is a tests/ioctl.test now, so you will never see again these annoying TCGETS collisions on architectures where this test passes. As a part of this change, ioctlsort is now used at build time. The trick is that ioctlsort is now being compiled with headers of the target system, so please check how it works in case of cross-building. -- ldv |
From: Christopher C. <co...@co...> - 2015-01-28 22:57:58
|
Hi Dmitry, On 01/21/2015 09:21 PM, Dmitry V. Levin wrote: > Hi, > > I've just pushed commit v4.9-222-gdf7aa2b that implements 32-bit ioctl > command decoding. It has been tested with "make check" on arm oabi, > arm eabi, mips, mipsel, powerpc, powerpc64, sparc, x86, and x86_64. > > There is a tests/ioctl.test now, so you will never see again these > annoying TCGETS collisions on architectures where this test passes. > > As a part of this change, ioctlsort is now used at build time. > The trick is that ioctlsort is now being compiled with headers of the > target system, so please check how it works in case of cross-building. Since commit df7aa2b19e6f69c19fbe09180bf1ec4fb52e2615 we've not been able to get a cross compilation to work without modifying the makefile. I'm not sure if this is what you intended, but generally, we've been overriding ioctlsort_VAR makefile variables by specifying them on the right hand side of the make invocation. However there is one variable, ioctlsort_CPPFLAGS which is a superset of AM_CPPFLAGS, which we want to keep, and CPPFLAGS, which we want to override (maybe with an empty string, I don't recall at the moment). Would it be possible to in the place of CPPFLAGS introduce an intermediate variable, such as ioctlsort_OVERRIDEABLE_CPPFLAGS, initially set to CPPFLAGS but potentially overridden by (right hand side) command line arguments to make? Thanks, Chris -- Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project |
From: Dmitry V. L. <ld...@al...> - 2015-01-29 02:59:33
|
Hi Chris, On Wed, Jan 28, 2015 at 05:40:04PM -0500, Christopher Covington wrote: [...] > Since commit df7aa2b19e6f69c19fbe09180bf1ec4fb52e2615 we've not been able to > get a cross compilation to work without modifying the makefile. I'm not sure > if this is what you intended, but generally, we've been overriding > ioctlsort_VAR makefile variables by specifying them on the right hand side of > the make invocation. However there is one variable, ioctlsort_CPPFLAGS which > is a superset of AM_CPPFLAGS, which we want to keep, and CPPFLAGS, which we > want to override (maybe with an empty string, I don't recall at the moment). > Would it be possible to in the place of CPPFLAGS introduce an intermediate > variable, such as ioctlsort_OVERRIDEABLE_CPPFLAGS, initially set to CPPFLAGS > but potentially overridden by (right hand side) command line arguments to make? Would it be better than the current definition of ioctlsort_CPPFLAGS? The same effect can be achieved by passing 'ioctlsort_CPPFLAGS=$(AM_CPPFLAGS)' to the make invocation. -- ldv |
From: Christopher C. <co...@co...> - 2015-01-29 17:32:33
|
On 01/28/2015 09:59 PM, Dmitry V. Levin wrote: > Hi Chris, > > On Wed, Jan 28, 2015 at 05:40:04PM -0500, Christopher Covington wrote: > [...] >> Since commit df7aa2b19e6f69c19fbe09180bf1ec4fb52e2615 we've not been able to >> get a cross compilation to work without modifying the makefile. I'm not sure >> if this is what you intended, but generally, we've been overriding >> ioctlsort_VAR makefile variables by specifying them on the right hand side of >> the make invocation. However there is one variable, ioctlsort_CPPFLAGS which >> is a superset of AM_CPPFLAGS, which we want to keep, and CPPFLAGS, which we >> want to override (maybe with an empty string, I don't recall at the moment). >> Would it be possible to in the place of CPPFLAGS introduce an intermediate >> variable, such as ioctlsort_OVERRIDEABLE_CPPFLAGS, initially set to CPPFLAGS >> but potentially overridden by (right hand side) command line arguments to make? > > Would it be better than the current definition of ioctlsort_CPPFLAGS? > > The same effect can be achieved by passing > 'ioctlsort_CPPFLAGS=$(AM_CPPFLAGS)' to the make invocation. Ah, yes, that works fine. Thanks! Chris -- Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project |