balena-os / balena-ts

Balena support for TS boards
Apache License 2.0
3 stars 1 forks source link

recipes-kernel/linux: Add fno-pic CFLAGS for modules #141

Closed vicgal closed 5 years ago

vicgal commented 5 years ago

The kernel modules need to be compiled with the -fno-pic flag to avoid errors of this type:

[ 14.213347] uio: Unknown symbol _GLOBAL_OFFSETTABLE (err 0) [ 14.273328] uio: Unknown symbol _GLOBAL_OFFSETTABLE (err 0) [ 14.333581] uio: Unknown symbol _GLOBAL_OFFSETTABLE (err 0) ....... [ 15.893587] xt_owner: Unknown symbol _GLOBAL_OFFSETTABLE (err 0) [ 15.937744] xt_owner: Unknown symbol _GLOBAL_OFFSETTABLE (err 0) [ 16.043144] xt_owner: Unknown symbol _GLOBAL_OFFSETTABLE (err 0) [ 16.087544] xt_owner: Unknown symbol _GLOBAL_OFFSETTABLE (err 0)

The flags don't apply for OOT modules.

Changelog-entry: Added fno-pic flag for modules Signed-off-by: Vicentiu Galanopulo vicentiu@balena.io

resin-jenkins commented 5 years ago

Can one of the admins verify this patch?

floion commented 5 years ago

@resin-jenkins add to whitelist

floion commented 5 years ago

@resin-ci retest