mk: fix FreeBSD build
authorSergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
Tue, 19 Jul 2016 13:40:37 +0000 (14:40 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 21 Jul 2016 08:26:12 +0000 (10:26 +0200)
commit658cf5bc54fa44b13714d0fc6840985db2d7f331
treee1eb9ed749a10b52b3ca1e5474cc23fae4377971
parent2f6414f4baf1d34e1c1a08d039ad0e51aead5277
mk: fix FreeBSD build

The sed syntax of '0,/regexp/' is GNU specific and fails with
non GNU sed in FreeBSD.

To solve the issue we can use awk instead to remove duplicates.

The awk script basically keeps the last config value, while
maintaining order and comments from original config file.

Fixes: b2063f104db7 ("mk: filter duplicate configuration entries")

Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
Acked-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
mk/rte.sdkconfig.mk