Skip to content

Commit 957480f

Browse files
committed
Merge remote-tracking branch 'upstream/master' into mingw32
2 parents 6002d6c + d64af97 commit 957480f

10 files changed

Lines changed: 1308 additions & 1080 deletions

File tree

Makefile

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# VPD Decode
55
#
66
# Copyright (C) 2000-2002 Alan Cox <alan@redhat.com>
7-
# Copyright (C) 2002-2015 Jean Delvare <jdelvare@suse.de>
7+
# Copyright (C) 2002-2020 Jean Delvare <jdelvare@suse.de>
88
#
99
# This program is free software; you can redistribute it and/or modify
1010
# it under the terms of the GNU General Public License as published by
@@ -14,7 +14,12 @@
1414

1515
CC = i686-w64-mingw32-gcc
1616
STRIP = i686-w64-mingw32-strip
17-
CFLAGS = -W -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual \
17+
# Base CFLAGS can be overridden by environment
18+
CFLAGS ?= -O2
19+
# When debugging, disable -O2 and enable -g
20+
#CFLAGS ?= -g
21+
22+
CFLAGS += -W -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual \
1823
-Wcast-align -Wwrite-strings -Wmissing-prototypes -Winline -Wundef
1924

2025
# Let lseek and mmap support 64-bit wide offsets
@@ -23,12 +28,8 @@ CFLAGS += -D_FILE_OFFSET_BITS=64
2328
#CFLAGS += -DBIGENDIAN
2429
#CFLAGS += -DALIGNMENT_WORKAROUND
2530

26-
# When debugging, disable -O2 and enable -g.
27-
CFLAGS += -O2
28-
#CFLAGS += -g
29-
30-
# Pass linker flags here
31-
LDFLAGS =
31+
# Pass linker flags here (can be set from environment too)
32+
LDFLAGS ?=
3233

3334
DESTDIR =
3435
prefix = /usr/local
@@ -63,8 +64,8 @@ all : $(PROGRAMS)
6364
# Programs
6465
#
6566

66-
dmidecode$(EXEEXT) : dmidecode.o dmiopt.o dmioem.o util.o winsmbios.o
67-
$(CC) $(LDFLAGS) dmidecode.o dmiopt.o dmioem.o util.o winsmbios.o -o $@
67+
dmidecode$(EXEEXT) : dmidecode.o dmiopt.o dmioem.o dmioutput.o util.o winsmbios.o
68+
$(CC) $(LDFLAGS) dmidecode.o dmiopt.o dmioem.o dmioutput.o util.o winsmbios.o -o $@
6869

6970
biosdecode : biosdecode.o util.o
7071
$(CC) $(LDFLAGS) biosdecode.o util.o -o $@
@@ -80,13 +81,16 @@ vpddecode : vpddecode.o vpdopt.o util.o
8081
#
8182

8283
dmidecode.o : dmidecode.c version.h types.h util.h config.h dmidecode.h \
83-
dmiopt.h dmioem.h
84+
dmiopt.h dmioem.h dmioutput.h
8485
$(CC) $(CFLAGS) -c $< -o $@
8586

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

89-
dmioem.o : dmioem.c types.h dmidecode.h dmioem.h
90+
dmioem.o : dmioem.c types.h dmidecode.h dmioem.h dmioutput.h
91+
$(CC) $(CFLAGS) -c $< -o $@
92+
93+
dmioutput.o : dmioutput.c types.h dmioutput.h
9094
$(CC) $(CFLAGS) -c $< -o $@
9195

9296
biosdecode.o : biosdecode.c version.h types.h util.h config.h

NEWS

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
Version 3.3 (Wed Oct 14 2020)
2+
- [BUILD] Allow overriding build settings from the environment.
3+
- [COMPATIBILITY] Document how the UUID fields are interpreted.
4+
- [PORTABILITY] Don't use memcpy on /dev/mem on arm64.
5+
- [PORTABILITY] Only scan /dev/mem for entry point on x86.
6+
- Support for SMBIOS 3.3.0. This includes new processor names, new port
7+
connector types, and new memory device form factors, types and
8+
technologies.
9+
- Add bios-revision, firmware-revision and system-sku-number to -s option.
10+
- Use the most appropriate unit for cache size.
11+
- Decode system slot base bus width and peers.
12+
- Important bug fixes:
13+
Fix Redfish Hostname print length
14+
Fix formatting of TPM table output
15+
Fix System Slot Information for PCIe SSD
16+
Don't choke on invalid processor voltage
17+
- Use the most appropriate unit for cache size.
18+
119
Version 3.2 (update 1) (Wed Jan 30 2019)
220
- Fix smbios version tests
321
- Under windows, the UUID is now always displayed with its first 3 fields

0 commit comments

Comments
 (0)