On Thu, Oct 24, 2019 at 6:31 PM Masahiro Yamada <yamada.masahiro@xxxxxxxxxxxxx> wrote: > $(subst ... ) is not the correct use here. > > It works like sed, s/$(CC_CFLAGS_SCS)// > instead of matching by word. > > > > > KBUILD_CFLAGS := $(filter-out $(CC_FLAGS_SCS), $(KBUILD_CFLAGS)) > > is more correct, and simpler. Thanks, I will change this in v3. Sami