From f0e5b5f234e689c2693eee6da5dddb91161a6c33 Mon Sep 17 00:00:00 2001 From: Mykyta Dorokhin Date: Fri, 8 Feb 2019 15:53:48 +0200 Subject: u-boot: hide u-boot version string for security reasons --- recipes-bsp/u-boot/u-boot-2016.09.01/hide_uboot_version.patch | 11 +++++++++++ recipes-bsp/u-boot/u-boot_2016.09.01.bb | 3 ++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 recipes-bsp/u-boot/u-boot-2016.09.01/hide_uboot_version.patch (limited to 'recipes-bsp') diff --git a/recipes-bsp/u-boot/u-boot-2016.09.01/hide_uboot_version.patch b/recipes-bsp/u-boot/u-boot-2016.09.01/hide_uboot_version.patch new file mode 100644 index 0000000..a59dcc1 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-2016.09.01/hide_uboot_version.patch @@ -0,0 +1,11 @@ +diff -raNu old/lib/display_options.c new/lib/display_options.c +--- old/lib/display_options.c 2016-09-19 17:45:12.000000000 +0300 ++++ new/lib/display_options.c 2019-02-08 15:40:16.566717983 +0200 +@@ -15,6 +15,7 @@ + + int display_options (void) + { ++ return 0; + #if defined(BUILD_TAG) + printf ("\n\n%s, Build: %s\n\n", version_string, BUILD_TAG); + #else diff --git a/recipes-bsp/u-boot/u-boot_2016.09.01.bb b/recipes-bsp/u-boot/u-boot_2016.09.01.bb index 44c9e04..d94ba56 100644 --- a/recipes-bsp/u-boot/u-boot_2016.09.01.bb +++ b/recipes-bsp/u-boot/u-boot_2016.09.01.bb @@ -10,7 +10,8 @@ SRC_URI = "ftp://ftp.denx.de/pub/u-boot/u-boot-${PV}.tar.bz2 \ file://macb.patch \ file://printeepromcrc.patch \ file://mtpwd.patch \ - file://tftpput.patch" + file://tftpput.patch \ + file://hide_uboot_version.patch" SRC_URI_append_mtcdt = " \ file://mtcdt.patch" -- cgit v1.2.3