Skip to content

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

Merged
cfc4n merged 1 commit into
masterfrom
make-prepare-header
May 5, 2024
Merged

makefile: Optimized the generation mechanism of kernel header files#536
cfc4n merged 1 commit into
masterfrom
make-prepare-header

Conversation

@cfc4n
Copy link
Copy Markdown
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
@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