簡體   English   中英

無法將 arm64 kernel 構建為 halium

[英]Failed to build arm64 kernel to halium

我正在嘗試為我的設備編譯 halium-boot,當我嘗試運行命令時make halium-boot顯示此錯誤:

/home/jonathan/Documentos/halium/kernel/xiaomi/msm8953/arch/arm64/kernel/signal.c: In function 'setup_return':/home/jonathan/Documentos/halium/kernel/xiaomi/msm8953/arch/arm64/include/asm/vdso.h:34:11: error: 'vdso_offset_sigtramp' undeclared (first use in this function)
  (void *)(vdso_offset_##name - VDSO_LBASE + (unsigned long)(base)); \
           ^
/home/jonathan/Documentos/halium/kernel/xiaomi/msm8953/arch/arm64/kernel/signal.c:245:14: note: in expansion of macro 'VDSO_SYMBOL'
   sigtramp = VDSO_SYMBOL(current->mm->context.vdso, sigtramp);
              ^
/home/jonathan/Documentos/halium/kernel/xiaomi/msm8953/arch/arm64/include/asm/vdso.h:34:11: note: each undeclared identifier is reported only once for each function it appears in
  (void *)(vdso_offset_##name - VDSO_LBASE + (unsigned long)(base)); \
           ^
/home/jonathan/Documentos/halium/kernel/xiaomi/msm8953/arch/arm64/kernel/signal.c:245:14: note: in expansion of macro 'VDSO_SYMBOL'
   sigtramp = VDSO_SYMBOL(current->mm->context.vdso, sigtramp);

當我查看生成的文件時,它們是空的。 我嘗試使用 chmod 將 gen_vdso_offset.sh 的文件模式更改為 775,但這不起作用。

這是我的 gen 文件:

#!/bin/sh
#
# Match symbols in the DSO that look like VDSO_*; produce a header file
# of constant offsets into the shared object.
#
# Doing this inside the Makefile will break the $(filter-out) function,
# causing Kbuild to rebuild the vdso-offsets header file every time.
#
# Author: Will Deacon <will.deacon@arm.com
#

LC_ALL=C
sed -n -e 's/^00*/0/' -e \
's/^\([0-9a-fA-F]*\) . VDSO_\([a-zA-Z0-9_]*\)$/\#define vdso_offset_\2\t0x\1/p'

我分叉了 kernel,這就是鏈接: Kernel arm64 文件夾

對於面臨同樣問題的人,我解決了更改/arch/arm64/Makefile這個代碼:

prepare: vdso_prepare
vdso_prepare: prepare0
    $(Q)$(MAKE) $(build)=arch/arm64/kernel/vdso include/generated/vdso-offsets.h

這需要高於此:

PHONY += vdso_install
vdso_install:
    $(Q)$(MAKE) $(build)=arch/arm64/kernel/vdso $@

通過此修復,之前生成了 vdso-offset.h,並修復了空文件問題。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM