Skip to content

Commit 1398567

Browse files
Change SECURE_UPGRADE_DEV_SIGNING_CERT to SECURE_UPGRADE_SIGNING_CERT (#315)
Co-authored-by: Qi Luo <[email protected]>
1 parent 6f38dca commit 1398567

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ KERNEL_SUBVERSION ?= 1
1010
kernel_procure_method ?= build
1111
CONFIGURED_ARCH ?= amd64
1212
SECURE_UPGRADE_MODE ?=
13-
SECURE_UPGRADE_DEV_SIGNING_CERT =?
13+
SECURE_UPGRADE_SIGNING_CERT =?
1414

1515
LINUX_HEADER_COMMON = linux-headers-$(KVERSION_SHORT)-common_$(KERNEL_VERSION)-$(KERNEL_SUBVERSION)_all.deb
1616
LINUX_HEADER_AMD64 = linux-headers-$(KVERSION)_$(KERNEL_VERSION)-$(KERNEL_SUBVERSION)_$(CONFIGURED_ARCH).deb
@@ -134,7 +134,7 @@ $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
134134

135135
# Optionally add/remove kernel options
136136
if [ -f ../manage-config ]; then
137-
../manage-config $(CONFIGURED_ARCH) $(CONFIGURED_PLATFORM) $(SECURE_UPGRADE_MODE) $(SECURE_UPGRADE_DEV_SIGNING_CERT)
137+
../manage-config $(CONFIGURED_ARCH) $(CONFIGURED_PLATFORM) $(SECURE_UPGRADE_MODE) $(SECURE_UPGRADE_SIGNING_CERT)
138138
fi
139139

140140
# Building a custom kernel from Debian kernel source

manage-config

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
ARCH=amd64
2828
PLATFORM=
2929
SECURE_UPGRADE_MODE="no_sign"
30-
SECURE_UPGRADE_DEV_SIGNING_CERT=
30+
SECURE_UPGRADE_SIGNING_CERT=
3131
if [ $# -ge 1 ]; then
3232
ARCH=$1
3333
fi
@@ -38,7 +38,7 @@ if [ $# -ge 3 ]; then
3838
SECURE_UPGRADE_MODE=$3
3939
fi
4040
if [ $# -ge 4 ]; then
41-
SECURE_UPGRADE_DEV_SIGNING_CERT=$4
41+
SECURE_UPGRADE_SIGNING_CERT=$4
4242
fi
4343

4444
case "$ARCH" in
@@ -163,12 +163,12 @@ ret_process_inc_ex=$(process_inclusion_exclusion_files > /dev/null; echo $?)
163163

164164
# Secure Boot support
165165
if [ $ret_process_inc_ex -eq 0 ]; then
166-
echo "Secure Boot params: SECURE_UPGRADE_MODE=${SECURE_UPGRADE_MODE}, SECURE_UPGRADE_DEV_SIGNING_CERT=${SECURE_UPGRADE_DEV_SIGNING_CERT}"
166+
echo "Secure Boot params: SECURE_UPGRADE_MODE=${SECURE_UPGRADE_MODE}, SECURE_UPGRADE_SIGNING_CERT=${SECURE_UPGRADE_SIGNING_CERT}"
167167
if [ ${SECURE_UPGRADE_MODE} == "dev" -o ${SECURE_UPGRADE_MODE} == "prod" ]; then
168168
echo "set kconfig-secure-boot-exclusions & kconfig-secure-boot-inclusions"
169169

170-
if [ ! -f "${SECURE_UPGRADE_DEV_SIGNING_CERT}" ]; then
171-
echo "ERROR: SECURE_UPGRADE_DEV_SIGNING_CERT=${SECURE_UPGRADE_DEV_SIGNING_CERT} file does not exist"
170+
if [ ! -f "${SECURE_UPGRADE_SIGNING_CERT}" ]; then
171+
echo "ERROR: SECURE_UPGRADE_SIGNING_CERT=${SECURE_UPGRADE_SIGNING_CERT} file does not exist"
172172
exit 1
173173
fi
174174

@@ -177,7 +177,7 @@ if [ $ret_process_inc_ex -eq 0 ]; then
177177
force_inclusion_file="../patch/kconfig-force-secure-boot-inclusions"
178178

179179
# save the new pub key in kernel
180-
sed -i "s|^CONFIG_SYSTEM_TRUSTED_KEYS=.*|CONFIG_SYSTEM_TRUSTED_KEYS=\"$SECURE_UPGRADE_DEV_SIGNING_CERT\"|g" ${inclusion_file}
180+
sed -i "s|^CONFIG_SYSTEM_TRUSTED_KEYS=.*|CONFIG_SYSTEM_TRUSTED_KEYS=\"$SECURE_UPGRADE_SIGNING_CERT\"|g" ${inclusion_file}
181181

182182
ret_process_inc_ex=$(process_inclusion_exclusion_files > /dev/null; echo $?)
183183
echo "Secure Boot kernel configuration done."

0 commit comments

Comments
 (0)