Skip to content

Commit 24f3705

Browse files
committed
Sync with dmidecode 3.6 upstream
1 parent 293291d commit 24f3705

18 files changed

Lines changed: 1430 additions & 267 deletions

Changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
Acidanthera dmidecode Changelog
22
===============================
33

4+
#### v3.6a
5+
- Synced with dmidecode 51b1ecc2
6+
47
#### v3.4a
58
- Synced with dmidecode a1a2258f
69
- Added Apple Silicon support

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ sbindir = $(prefix)/sbin
4242
mandir = $(prefix)/share/man
4343
man8dir = $(mandir)/man8
4444
docdir = $(prefix)/share/doc/dmidecode
45+
compdir = $(shell pkg-config --variable=completionsdir bash-completion 2>/dev/null || echo $(prefix)/etc/bash_completion.d)
4546

4647
INSTALL := install
4748
INSTALL_DATA := $(INSTALL) -m 644
@@ -119,9 +120,9 @@ util.o : util.c types.h util.h config.h
119120
strip : $(PROGRAMS)
120121
strip $(PROGRAMS)
121122

122-
install : install-bin install-man install-doc
123+
install : install-bin install-man install-doc install-completion
123124

124-
uninstall : uninstall-bin uninstall-man uninstall-doc
125+
uninstall : uninstall-bin uninstall-man uninstall-doc uninstall-completion
125126

126127
install-bin : $(PROGRAMS)
127128
$(INSTALL_DIR) $(DESTDIR)$(sbindir)

NEWS

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,36 @@
1+
Version 3.6 (Wed Apr 24 2024)
2+
- [PORTABILITY] Use -DALIGNMENT_WORKAROUND on arm.
3+
- [PORTABILITY] Read SMBIOS entry point via kenv on DragonFly BSD.
4+
- Support for SMBIOS 3.6.0. This includes new memory device types, new
5+
processor upgrades, and Loongarch support.
6+
- Support for SMBIOS 3.7.0. This includes new port types, new processor
7+
upgrades, new slot characteristics and new fields for memory modules.
8+
- Add bash completion.
9+
- Decode HPE OEM records 197, 239 and 245.
10+
- Implement options --list-strings and --list-types.
11+
- Update HPE OEM records 203, 212, 216, 221, 233, 236, 237, 238 and 242.
12+
- Update Redfish support.
13+
- Bug fixes:
14+
Fix option --from-dump for user root
15+
Fix enabled slot characteristics not being printed
16+
- Minor improvements:
17+
Print slot width on its own line
18+
Use standard strings for slot width
19+
20+
Version 3.5 (Tue Mar 14 2023)
21+
- Decode HPE OEM records 216, 224, 230, 238 and 242.
22+
- Fortify entry point length checks.
23+
- Add a --no-quirks option.
24+
- Drop the CPUID exception list.
25+
- Do not let --dump-bin overwrite an existing file.
26+
- Ensure /dev/mem is a character device file.
27+
- Bug fixes:
28+
Fix segmentation fault in HPE OEM record 240
29+
- Minor improvements:
30+
Typo fixes
31+
Write the whole dump file at once
32+
Fix a build warning when USE_MMAP isn't set
33+
134
Version 3.4 (Mon Jun 27 2022)
235
- Support for SMBIOS 3.4.0. This includes new memory device types, new
336
processor upgrades, new slot types and characteristics, decoding of memory

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ dmidecode
77

88
This dmidecode version supports Apple-specific table decoding as well
99
as native macOS SMBIOS reading through I/O Registry. Synced with
10-
[upstream](git://git.savannah.gnu.org/dmidecode.git) up to a1a2258f.
10+
[upstream](git://git.savannah.gnu.org/dmidecode.git) up to 51b1ecc2.
1111

1212
**INTRODUCTION**
1313

completion/biosdecode.bash

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# bash completion for biosdecode -*- shell-script -*-
2+
3+
_comp_cmd_biosdecode() {
4+
local cur prev
5+
COMPREPLY=()
6+
cur=${COMP_WORDS[COMP_CWORD]}
7+
prev=${COMP_WORDS[COMP_CWORD - 1]}
8+
9+
case $prev in
10+
-d | --dev-mem)
11+
: "${cur:=/dev/}"
12+
local IFS=$'\n'
13+
compopt -o filenames
14+
COMPREPLY=($(compgen -f -- "$cur"))
15+
return 0
16+
;;
17+
--pir)
18+
COMPREPLY=($(compgen -W '
19+
full
20+
' -- "$cur"))
21+
return 0
22+
;;
23+
-[hV] | --help | --version)
24+
return 0
25+
;;
26+
esac
27+
28+
if [[ $cur == -* ]]; then
29+
COMPREPLY=($(compgen -W '
30+
--dev-mem
31+
--pir
32+
--help
33+
--version
34+
' -- "$cur"))
35+
return 0
36+
fi
37+
38+
} && complete -F _comp_cmd_biosdecode biosdecode
39+
40+
# ex: filetype=sh

completion/dmidecode.bash

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# bash completion for dmidecode -*- shell-script -*-
2+
3+
_comp_cmd_dmidecode() {
4+
local cur prev
5+
COMPREPLY=()
6+
cur=${COMP_WORDS[COMP_CWORD]}
7+
prev=${COMP_WORDS[COMP_CWORD - 1]}
8+
9+
case $prev in
10+
-d | --dev-mem | --dump-bin | --from-dump)
11+
if [[ $prev == -d || $prev == --dev-mem ]]; then
12+
: "${cur:=/dev/}"
13+
fi
14+
local IFS=$'\n'
15+
compopt -o filenames
16+
COMPREPLY=($(compgen -f -- "$cur"))
17+
return 0
18+
;;
19+
-s | --string)
20+
COMPREPLY=($(compgen -W '$("$1" --list-strings)' -- "$cur"))
21+
return 0
22+
;;
23+
-t | --type)
24+
COMPREPLY=($(compgen -W '$("$1" --list-types)' -- "$cur"))
25+
return 0
26+
;;
27+
--dump-bin | --from-dump)
28+
local IFS=$'\n'
29+
compopt -o filenames
30+
COMPREPLY=($(compgen -f -- "$cur"))
31+
return 0
32+
;;
33+
-[hVH] | --help | --version | --handle | --oem-string)
34+
return 0
35+
;;
36+
esac
37+
38+
if [[ $cur == -* ]]; then
39+
COMPREPLY=($(compgen -W '
40+
--dev-mem
41+
--help
42+
--quiet
43+
--string
44+
--list-strings
45+
--type
46+
--list-types
47+
--handle
48+
--dump
49+
--dump-bin
50+
--from-dump
51+
--no-sysfs
52+
--oem-string
53+
--version
54+
' -- "$cur"))
55+
return 0
56+
fi
57+
58+
} && complete -F _comp_cmd_dmidecode dmidecode
59+
60+
# ex: filetype=sh

completion/ownership.bash

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# bash completion for ownership -*- shell-script -*-
2+
3+
_comp_cmd_ownership() {
4+
local cur prev
5+
COMPREPLY=()
6+
cur=${COMP_WORDS[COMP_CWORD]}
7+
prev=${COMP_WORDS[COMP_CWORD - 1]}
8+
9+
case $prev in
10+
-d | --dev-mem)
11+
: "${cur:=/dev/}"
12+
local IFS=$'\n'
13+
compopt -o filenames
14+
COMPREPLY=($(compgen -f -- "$cur"))
15+
return 0
16+
;;
17+
-[hV] | --help | --version)
18+
return 0
19+
;;
20+
esac
21+
22+
if [[ $cur == -* ]]; then
23+
COMPREPLY=($(compgen -W '
24+
--dev-mem
25+
--help
26+
--version
27+
' -- "$cur"))
28+
return 0
29+
fi
30+
31+
} && complete -F _comp_cmd_ownership ownership
32+
33+
# ex: filetype=sh

completion/vpddecode.bash

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# bash completion for vpddecode -*- shell-script -*-
2+
3+
_comp_cmd_vpddecode() {
4+
local cur prev
5+
COMPREPLY=()
6+
cur=${COMP_WORDS[COMP_CWORD]}
7+
prev=${COMP_WORDS[COMP_CWORD - 1]}
8+
9+
case $prev in
10+
-d | --dev-mem)
11+
: "${cur:=/dev/}"
12+
local IFS=$'\n'
13+
compopt -o filenames
14+
COMPREPLY=($(compgen -f -- "$cur"))
15+
return 0
16+
;;
17+
-s | --string)
18+
COMPREPLY=($(compgen -W '$(
19+
"$1" --string 2>&1 | while IFS=\$'\\n' read -r line ; do
20+
[[ $line == " "* ]] && printf "%s\n" "$line"
21+
done
22+
' -- "$cur"))
23+
return 0
24+
;;
25+
-[hV] | --help | --version)
26+
return 0
27+
;;
28+
esac
29+
30+
if [[ $cur == -* ]]; then
31+
COMPREPLY=($(compgen -W '
32+
--dev-mem
33+
--help
34+
--string
35+
--dump
36+
--version
37+
' -- "$cur"))
38+
return 0
39+
fi
40+
41+
} && complete -F _comp_cmd_vpddecode vpddecode
42+
43+
# ex: filetype=sh

0 commit comments

Comments
 (0)