mod/file2alias: make modalias generation safe for cross compiling
Use the target compiler to compute the offsets for the fields of the device_id structures, so that it won't be broken by different alignments between the host and target ABIs. This also fixes missing endian corrections for some modaliases. Signed-off-by:Andreas Schwab <schwab@linux-m68k.org> Signed-off-by:
Michal Marek <mmarek@suse.cz>
Showing
- Makefile 0 additions, 1 deletionMakefile
- include/linux/mod_devicetable.h 9 additions, 49 deletionsinclude/linux/mod_devicetable.h
- scripts/Makefile.modpost 1 addition, 6 deletionsscripts/Makefile.modpost
- scripts/mod/.gitignore 1 addition, 0 deletionsscripts/mod/.gitignore
- scripts/mod/Makefile 35 additions, 0 deletionsscripts/mod/Makefile
- scripts/mod/devicetable-offsets.c 178 additions, 0 deletionsscripts/mod/devicetable-offsets.c
- scripts/mod/file2alias.c 366 additions, 308 deletionsscripts/mod/file2alias.c
- scripts/mod/modpost.c 1 addition, 4 deletionsscripts/mod/modpost.c
Loading
Please register or sign in to comment