Skip to content

Commit

Permalink
Update to 5b3c8e99 with SMBIOS 3.2 improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
vit9696 committed May 9, 2020
1 parent 3eae877 commit bde34f4
Show file tree
Hide file tree
Showing 8 changed files with 1,241 additions and 1,078 deletions.
30 changes: 17 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,21 @@
# VPD Decode
#
# Copyright (C) 2000-2002 Alan Cox <alan@redhat.com>
# Copyright (C) 2002-2015 Jean Delvare <jdelvare@suse.de>
# Copyright (C) 2002-2020 Jean Delvare <jdelvare@suse.de>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#

CC = gcc
CFLAGS = -W -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual \
CC ?= gcc
# Base CFLAGS can be overridden by environment
CFLAGS ?= -O2
# When debugging, disable -O2 and enable -g
#CFLAGS ?= -g

CFLAGS += -W -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual \
-Wcast-align -Wwrite-strings -Wmissing-prototypes -Winline -Wundef

# Let lseek and mmap support 64-bit wide offsets
Expand All @@ -22,12 +27,8 @@ CFLAGS += -D_FILE_OFFSET_BITS=64
#CFLAGS += -DBIGENDIAN
#CFLAGS += -DALIGNMENT_WORKAROUND

# When debugging, disable -O2 and enable -g.
CFLAGS += -O2
#CFLAGS += -g

# Pass linker flags here
LDFLAGS =
# Pass linker flags here (can be set from environment too)
LDFLAGS ?=

UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Darwin)
Expand Down Expand Up @@ -67,8 +68,8 @@ all : $(PROGRAMS)
# Programs
#

dmidecode : dmidecode.o dmiopt.o dmioem.o util.o
$(CC) $(LDFLAGS) dmidecode.o dmiopt.o dmioem.o util.o -o $@
dmidecode : dmidecode.o dmiopt.o dmioem.o dmioutput.o util.o
$(CC) $(LDFLAGS) dmidecode.o dmiopt.o dmioem.o dmioutput.o util.o -o $@

biosdecode : biosdecode.o util.o
$(CC) $(LDFLAGS) biosdecode.o util.o -o $@
Expand All @@ -84,13 +85,16 @@ vpddecode : vpddecode.o vpdopt.o util.o
#

dmidecode.o : dmidecode.c version.h types.h util.h config.h dmidecode.h \
dmiopt.h dmioem.h
dmiopt.h dmioem.h dmioutput.h
$(CC) $(CFLAGS) -c $< -o $@

dmiopt.o : dmiopt.c config.h types.h util.h dmidecode.h dmiopt.h
$(CC) $(CFLAGS) -c $< -o $@

dmioem.o : dmioem.c types.h dmidecode.h dmioem.h
dmioem.o : dmioem.c types.h dmidecode.h dmioem.h dmioutput.h
$(CC) $(CFLAGS) -c $< -o $@

dmioutput.o : dmioutput.c types.h dmioutput.h
$(CC) $(CFLAGS) -c $< -o $@

biosdecode.o : biosdecode.c version.h types.h util.h config.h
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ dmidecode

This dmidecode version supports Apple-specific table decoding as well
as native macOS SMBIOS reading through I/O Registry. Synced with
[upstream](http://git.savannah.gnu.org/cgit/dmidecode.git) up to 62bce59f.
[upstream](http://git.savannah.gnu.org/cgit/dmidecode.git) up to 5b3c8e99.

**INTRODUCTION**

Expand Down
Loading

0 comments on commit bde34f4

Please sign in to comment.