1 # SPDX-License-Identifier: GPL-2.0
3 chkbss-target ?= built-in.a
4 $(obj)/$(chkbss-target): chkbss
6 chkbss-files := $(addsuffix .chkbss, $(chkbss))
7 clean-files += $(chkbss-files)
10 chkbss: $(addprefix $(obj)/, $(chkbss-files))
12 quiet_cmd_chkbss = CHKBSS $<
14 if ! $(OBJSIZE) --common $< | $(AWK) 'END { if ($$3) exit 1 }'; then \
15 echo "error: $< .bss section is not empty" >&2; exit 1; \
19 $(obj)/%.o.chkbss: $(obj)/%.o