From 52b95c9dbd2fb8c30bd02e7cf0b17bddfc29aa4c Mon Sep 17 00:00:00 2001 From: Adrian Calianu Date: Thu, 12 May 2016 12:57:13 +0200 Subject: Fman config for Enea specific device tree For Enea specific device tree where only the FM1@GETH5 is allocated to Linux stack while all other ethernet ports are allocated to USDPAA it is required to have a specific config file. Signed-off-by: Adrian Calianu Signed-off-by: Martin Borg --- recipes-dpaa/usdpaa-apps/usdpaa-apps_git.bbappend | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 recipes-dpaa/usdpaa-apps/usdpaa-apps_git.bbappend diff --git a/recipes-dpaa/usdpaa-apps/usdpaa-apps_git.bbappend b/recipes-dpaa/usdpaa-apps/usdpaa-apps_git.bbappend new file mode 100644 index 0000000..128bb41 --- /dev/null +++ b/recipes-dpaa/usdpaa-apps/usdpaa-apps_git.bbappend @@ -0,0 +1,7 @@ +# Remove RGMII port since it is allocated to Linux stack when boot with -usdpaa-enea- device tree +# Removed port must always match with the one removed from -usdpaa-enea- + +do_configure_prepend() { + sed '/type=\"MAC\" number=\"5\"/d' ${S}/src/ppac/usdpaa_config_p2_p3_p5_14g.xml > ${S}/src/ppac/usdpaa_config_enea_p2_p3_p5_14g.xml + sed '/usdpaa_config_p2_p3_p5_14g\.xml/a\ usdpaa_config_enea_p2_p3_p5_14g.xml \\' ${S}/src/ppac/Makefile.am > ${S}/src/ppac/Makefile.am.bak && mv ${S}/src/ppac/Makefile.am.bak ${S}/src/ppac/Makefile.am +} -- cgit v1.2.3-54-g00ecf