diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile index 6b45b551b..8eed67dc0 100644 --- a/target/linux/ar71xx/image/Makefile +++ b/target/linux/ar71xx/image/Makefile @@ -1146,7 +1146,7 @@ endef define Image/Prepare gzip -9 -c $(KDIR)/vmlinux > $(KDIR)/vmlinux.bin.gz $(call CompressLzma,$(KDIR)/vmlinux,$(KDIR)/vmlinux.bin.lzma) - $(if $(CONFIG_IB),$(call Image/Build/Profile/Default,loader)) + $(call Image/Build/Profile/$(if $(CONFIG_IB),Default,$(PROFILE)),loader) endef define Image/Build