File shim-only-os-name.patch of Package shim.12337

From 087123b6eb8e8067c500cb7a411085c0ebe66e94 Mon Sep 17 00:00:00 2001
From: Gary Lin <glin@suse.com>
Date: Thu, 4 Jan 2018 12:22:43 +0800
Subject: [PATCH] Only use the OS name in version

Since we build shim binary with open build service, it's difficult to
fix the linux kernel version of the build bot, so we just use "uname -o"
instead of "uname -a".

Signed-off-by: Gary Lin <glin@suse.com>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index e756aa5..f4b7adb 100644
--- a/Makefile
+++ b/Makefile
@@ -177,7 +177,7 @@ shim_cert.h: shim.cer
 
 version.c : $(TOPDIR)/version.c.in
 	sed	-e "s,@@VERSION@@,$(VERSION)," \
-		-e "s,@@UNAME@@,$(shell uname -a)," \
+		-e "s,@@UNAME@@,$(shell uname -o)," \
 		-e "s,@@COMMIT@@,$(COMMITID)," \
 		< $< > $@
 
-- 
2.15.1

openSUSE Build Service is sponsored by