]>
Commit | Line | Data |
---|---|---|
b5a20463 | 1 | # SPDX-License-Identifier: GPL-2.0 |
6a44d806 MY |
2 | # |
3 | # Kbuild for top-level directory of U-Boot | |
6a44d806 | 4 | |
490cf5f0 | 5 | ##### |
b5a20463 | 6 | # Generate generic-asm-offsets.h |
490cf5f0 MY |
7 | |
8 | generic-offsets-file := include/generated/generic-asm-offsets.h | |
9 | ||
10 | always := $(generic-offsets-file) | |
ba84de9f | 11 | targets := lib/asm-offsets.s |
490cf5f0 | 12 | |
c1094987 MB |
13 | CFLAGS_REMOVE_asm-offsets.o := $(LTO_CFLAGS) |
14 | ||
f34d0ad8 | 15 | $(obj)/$(generic-offsets-file): $(obj)/lib/asm-offsets.s FORCE |
3a4f6b60 | 16 | $(call filechk,offsets,__GENERIC_ASM_OFFSETS_H__) |
6a44d806 MY |
17 | |
18 | ##### | |
b5a20463 | 19 | # Generate asm-offsets.h |
6a44d806 | 20 | |
254d68b6 | 21 | ifneq ($(wildcard $(srctree)/arch/$(ARCH)/lib/asm-offsets.c),) |
6a44d806 MY |
22 | offsets-file := include/generated/asm-offsets.h |
23 | endif | |
24 | ||
25 | always += $(offsets-file) | |
254d68b6 | 26 | targets += arch/$(ARCH)/lib/asm-offsets.s |
6a44d806 | 27 | |
6a44d806 MY |
28 | CFLAGS_asm-offsets.o := -DDO_DEPS_ONLY |
29 | ||
f34d0ad8 | 30 | $(obj)/$(offsets-file): $(obj)/arch/$(ARCH)/lib/asm-offsets.s FORCE |
3a4f6b60 | 31 | $(call filechk,offsets,__ASM_OFFSETS_H__) |