x86: preinit: make name rewrite into reusable function
authorPhilip Prindeville <philipp@redfish-solutions.com>
Mon, 30 Oct 2017 18:31:04 +0000 (12:31 -0600)
committerJo-Philipp Wich <jo@mein.io>
Thu, 4 Jan 2018 12:44:42 +0000 (13:44 +0100)
commit445f980a386960840414898af17fbac2fda82779
tree657fee9a44966b41e7146062e97759000caec707
parent6c76decd61ab062bfb7fce78da5de89a2b9fcc72
x86: preinit: make name rewrite into reusable function

There might be other places (such as vendor-supplied preinit scripts)
where we wish to take a DMI name and clean it up in a consistent way,
so make the sed command into a function.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
target/linux/x86/base-files/lib/preinit/01_sysinfo