Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

makefile: Optimized the generation mechanism of kernel header files #536

Merged
merged 1 commit into from
May 5, 2024

Conversation

cfc4n
Copy link
Member

@cfc4n cfc4n commented May 5, 2024

Run the make prepare command only if the arch/$(LINUX_ARCH)/kernel/asm-offsets.s file does not exist. This is because this file is generated during the make phase.

CROSS_ARCH=amd64 (on arm64 ubuntu 22.04)

  CC      kernel/bounds.s
  CC      arch/x  86/kernel/asm-offsets.s
  CALL    scripts/checksyscalls.sh
  CALL    scripts/atomic/check-atomics.sh

arm64(aarch64)

  CC      kernel/bounds.s
  UPD     include/generated/bounds.h
  CC      arch/arm64/kernel/asm-offsets.s
  UPD     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  CALL    scripts/atomic/check-atomics.sh

Run the `make prepare` command only if the `arch/$(LINUX_ARCH)/kernel/asm-offsets.s` file does not exist. This is because this file is generated during the make phase.

Signed-off-by: CFC4N <cfc4n.cs@gmail.com>
@cfc4n cfc4n added the improve label May 5, 2024
@cfc4n cfc4n merged commit a078cf3 into master May 5, 2024
6 checks passed
@cfc4n cfc4n deleted the make-prepare-header branch May 5, 2024 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant