Skip to content

Commit 8861952

Browse files
committed
Merge branch 'for-next/kbuild' into for-next/core
* for-next/kbuild: efi/libstub: zboot: do not use $(shell ...) in cmd_copy_and_pad arm64: properly install vmlinuz.efi arm64: replace <asm-generic/export.h> with <linux/export.h> arm64: vdso32: rename 32-bit debug vdso to vdso32.so.dbg
2 parents 79eb42b + 97ba441 commit 8861952

File tree

6 files changed

+11
-10
lines changed

6 files changed

+11
-10
lines changed

arch/arm64/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ endif
200200
endif
201201

202202
vdso-install-y += arch/arm64/kernel/vdso/vdso.so.dbg
203-
vdso-install-$(CONFIG_COMPAT_VDSO) += arch/arm64/kernel/vdso32/vdso.so.dbg:vdso32.so
203+
vdso-install-$(CONFIG_COMPAT_VDSO) += arch/arm64/kernel/vdso32/vdso32.so.dbg
204204

205205
include $(srctree)/scripts/Makefile.defconf
206206

arch/arm64/boot/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ EFI_ZBOOT_BFD_TARGET := elf64-littleaarch64
4444
EFI_ZBOOT_MACH_TYPE := ARM64
4545
EFI_ZBOOT_FORWARD_CFI := $(CONFIG_ARM64_BTI_KERNEL)
4646

47-
EFI_ZBOOT_OBJCOPY_FLAGS = --add-symbol zboot_code_size=0x$(shell \
47+
EFI_ZBOOT_OBJCOPY_FLAGS = --add-symbol zboot_code_size=0x$$( \
4848
$(NM) vmlinux|grep _kernel_codesize|cut -d' ' -f1)
4949

5050
include $(srctree)/drivers/firmware/efi/libstub/Makefile.zboot

arch/arm64/boot/install.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
# $3 - kernel map file
1818
# $4 - default install path (blank if root directory)
1919

20-
if [ "$(basename $2)" = "Image.gz" ]; then
20+
if [ "$(basename $2)" = "Image.gz" ] || [ "$(basename $2)" = "vmlinuz.efi" ]
21+
then
2122
# Compressed install
2223
echo "Installing compressed kernel"
2324
base=vmlinuz

arch/arm64/include/asm/assembler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#ifndef __ASM_ASSEMBLER_H
1313
#define __ASM_ASSEMBLER_H
1414

15-
#include <asm-generic/export.h>
15+
#include <linux/export.h>
1616

1717
#include <asm/alternative.h>
1818
#include <asm/asm-bug.h>

arch/arm64/kernel/vdso32/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ endif
118118
VDSO_CFLAGS_REMOVE_vgettimeofday.o = $(CC_FLAGS_FTRACE) -Os
119119

120120
# Build rules
121-
targets := $(c-obj-vdso) $(c-obj-vdso-gettimeofday) $(asm-obj-vdso) vdso.so vdso.so.dbg vdso.so.raw
121+
targets := $(c-obj-vdso) $(c-obj-vdso-gettimeofday) $(asm-obj-vdso) vdso.so vdso32.so.dbg vdso.so.raw
122122
c-obj-vdso := $(addprefix $(obj)/, $(c-obj-vdso))
123123
c-obj-vdso-gettimeofday := $(addprefix $(obj)/, $(c-obj-vdso-gettimeofday))
124124
asm-obj-vdso := $(addprefix $(obj)/, $(asm-obj-vdso))
@@ -127,15 +127,15 @@ obj-vdso := $(c-obj-vdso) $(c-obj-vdso-gettimeofday) $(asm-obj-vdso)
127127
targets += vdso.lds
128128
CPPFLAGS_vdso.lds += -P -C -U$(ARCH)
129129

130-
include/generated/vdso32-offsets.h: $(obj)/vdso.so.dbg FORCE
130+
include/generated/vdso32-offsets.h: $(obj)/vdso32.so.dbg FORCE
131131
$(call if_changed,vdsosym)
132132

133133
# Strip rule for vdso.so
134134
$(obj)/vdso.so: OBJCOPYFLAGS := -S
135-
$(obj)/vdso.so: $(obj)/vdso.so.dbg FORCE
135+
$(obj)/vdso.so: $(obj)/vdso32.so.dbg FORCE
136136
$(call if_changed,objcopy)
137137

138-
$(obj)/vdso.so.dbg: $(obj)/vdso.so.raw $(obj)/$(munge) FORCE
138+
$(obj)/vdso32.so.dbg: $(obj)/vdso.so.raw $(obj)/$(munge) FORCE
139139
$(call if_changed,vdsomunge)
140140

141141
# Link rule for the .so file, .lds has to be first

drivers/firmware/efi/libstub/Makefile.zboot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
# EFI_ZBOOT_FORWARD_CFI
66

77
quiet_cmd_copy_and_pad = PAD $@
8-
cmd_copy_and_pad = cp $< $@ && \
9-
truncate -s $(shell hexdump -s16 -n4 -e '"%u"' $<) $@
8+
cmd_copy_and_pad = cp $< $@; \
9+
truncate -s $$(hexdump -s16 -n4 -e '"%u"' $<) $@
1010

1111
# Pad the file to the size of the uncompressed image in memory, including BSS
1212
$(obj)/vmlinux.bin: $(obj)/$(EFI_ZBOOT_PAYLOAD) FORCE

0 commit comments

Comments
 (0)