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