layerscape: fix linux headers install issue
authorYangbo Lu <yangbo.lu@nxp.com>
Thu, 20 Aug 2020 12:30:38 +0000 (20:30 +0800)
committerDaniel Golle <daniel@makrotopia.org>
Thu, 3 Sep 2020 13:34:33 +0000 (14:34 +0100)
commitad0f0df909b55fc228f12004e70bdb143f487ab0
tree0983949d07be5248217daf7e772a68d06e7b91fb
parentf922a3e00e0145be9c158de60bef255fe2cb65a1
layerscape: fix linux headers install issue

The linux upstream commit had treated config leak as error.
5967577 scripts: headers_install: Exit with error on config leak

It is causing below build issue. Provide a kernel patch to fix
it by replacing CONFIG_COMPAT kernel option with FM_COMPAT instead.

  HDRINST usr/include/linux/fmd/integrations/integration_ioctls.h
  HDRINST usr/include/linux/fmd/Peripherals/fm_port_ioctls.h
error: include/uapi/linux/fmd/Peripherals/fm_port_ioctls.h: leak
CONFIG_COMPAT to user-space
scripts/Makefile.headersinst:63: recipe for target
'usr/include/linux/fmd/Peripherals/fm_port_ioctls.h' failed
make[5]: *** [usr/include/linux/fmd/Peripherals/fm_port_ioctls.h] Error 1
Makefile:1198: recipe for target 'headers' failed
make[4]: *** [headers] Error 2

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
target/linux/layerscape/patches-5.4/701-net-0408-sdk_fman-fix-CONFIG_COMPAT-leak-during-headers-insta.patch [new file with mode: 0644]