kbuild: soften modpost checks when doing cross builds
The module alias support in the kernel have a consistency check where it is checked that the size of a structure in the kernel and on the build host are the same. For cross builds this check does not make sense so detect when we do cross builds and silently skip the check in these situations. This fixes a build bug for a wireless driver when cross building for arm. Acked-by: Michael Buesch <mb@bu3sch.de> Tested-by: Gordon Farquharson <gordonfarquharson@gmail.com> Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Cc: stable@kernel.org
This commit is contained in:
@ -2026,7 +2026,7 @@ int main(int argc, char **argv)
|
||||
int opt;
|
||||
int err;
|
||||
|
||||
while ((opt = getopt(argc, argv, "i:I:msSo:awM:K:")) != -1) {
|
||||
while ((opt = getopt(argc, argv, "i:I:cmsSo:awM:K:")) != -1) {
|
||||
switch (opt) {
|
||||
case 'i':
|
||||
kernel_read = optarg;
|
||||
@ -2035,6 +2035,9 @@ int main(int argc, char **argv)
|
||||
module_read = optarg;
|
||||
external_module = 1;
|
||||
break;
|
||||
case 'c':
|
||||
cross_build = 1;
|
||||
break;
|
||||
case 'm':
|
||||
modversions = 1;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user