Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37403423
en ru br
ALT Linux repos
5.0: 0.37-alt2.132635.16
4.1: 0.37-alt1.132633.8.M41.5
4.0: 0.30-alt4.132626.12.M40.3
+updates:0.30-alt4.132626.12.M40.3

Group :: System/Kernel and hardware
RPM: kernel-modules-tp_smapi-std-pae

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: tp_smapi-0.30-alt-makefile.patch
Download


diff --git a/tp_smapi/Makefile b/tp_smapi/Makefile
index d901264..80da7fb 100644
--- a/tp_smapi/Makefile
+++ b/tp_smapi/Makefile
@@ -82,14 +82,15 @@ endif
 
 # Ugly kludge for kernels that can't report OEM Strings DMI information:
 ifeq ($(shell grep -q DMI_DEV_TYPE_OEM_STRING $(KSRC)/include/linux/dmi.h || echo 1),1)
-ifeq ($(shell sudo /usr/sbin/dmidecode | grep -q dmidecode || echo 1),1)
-$(error Could not run /usr/sbin/dmidecode. Must be root or get sudo password to do that.)
-endif
+#ifeq ($(shell sudo /usr/sbin/dmidecode | grep -q dmidecode || echo 1),1)
+#$(error Could not run /usr/sbin/dmidecode. Must be root or get sudo password to do that.)
+#endif
 GEN_DMI_DECODE_PATCH= \
   cat $(PWD)/diff/dmi-decode-and-save-oem-string-information.patch | \
   { [ -f $(KSRC)/drivers/firmware/dmi_scan.c ] && cat || \
     perl -pe 's@drivers/firmware/dmi_scan.c@arch/i386/kernel/dmi_scan.c@g'; }
-DMI_EC_OEM_STRING:=$(shell sudo /usr/sbin/dmidecode | grep 'IBM ThinkPad Embedded Controller')
+#DMI_EC_OEM_STRING:=$(shell sudo /usr/sbin/dmidecode | grep 'IBM ThinkPad Embedded Controller')
+DMI_EC_OEM_STRING:=IBM ThinkPad Embedded Controller
 dmi_ec_oem_string.h: $(KSRC)/include/linux/dmi.h
 	@echo 'WARNING: Your kernel does not have this patch applied:' >&2
 	@echo '  dmi-decode-and-save-oem-string-information.patch' >&2
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin