summaryrefslogtreecommitdiff
path: root/recipes-bsp/u-boot
diff options
context:
space:
mode:
authorMykyta Dorokhin <mykyta.dorokhin@globallogic.com>2019-02-08 15:53:48 +0200
committerJohn Klug <john.klug@multitech.com>2019-02-12 16:26:00 -0600
commitf0e5b5f234e689c2693eee6da5dddb91161a6c33 (patch)
treef5063d6928e90573d4d7228b64baee4a93441206 /recipes-bsp/u-boot
parentd9feaaa57bd89a32e8d246a399163bf28fff902d (diff)
downloadmeta-multitech-atmel-f0e5b5f234e689c2693eee6da5dddb91161a6c33.tar.gz
meta-multitech-atmel-f0e5b5f234e689c2693eee6da5dddb91161a6c33.tar.bz2
meta-multitech-atmel-f0e5b5f234e689c2693eee6da5dddb91161a6c33.zip
u-boot: hide u-boot version string for security reasons
Diffstat (limited to 'recipes-bsp/u-boot')
-rw-r--r--recipes-bsp/u-boot/u-boot-2016.09.01/hide_uboot_version.patch11
-rw-r--r--recipes-bsp/u-boot/u-boot_2016.09.01.bb3
2 files changed, 13 insertions, 1 deletions
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"