#
# bootloader for target device
#
-BR2_TARGET_GRUB=y
-BR2_TARGET_GRUB_SPLASH=y
+# BR2_TARGET_GRUB is not set
+# BR2_TARGET_GRUB_SPLASH is not set
# BR2_TARGET_GRUB_DISKLESS is not set
# BR2_TARGET_GRUB_3c595 is not set
# BR2_TARGET_GRUB_3c90x is not set
export CONFIG_SHELL quiet Q KBUILD_VERBOSE VERBOSE
+HOSTCCACHE:=$(shell $(CONFIG_SHELL) -c "which ccache")
+ifneq ($(HOSTCCACHE),)
+BR2_HAVE_HOST_CCACHE=y
+endif
+
ifndef HOSTAR
HOSTAR:=ar
endif
ifndef FCFLAGS_FOR_BUILD
FCFLAGS_FOR_BUILD:=-g -O2
endif
+
+ifeq ($(BR2_HAVE_HOST_CCACHE),y)
+HOSTCC:=$(HOSTCCACHE) $(HOSTCC)
+HOSTCXX:=$(HOSTCCACHE) $(HOSTCXX)
+endif
+
export HOSTAR HOSTAS HOSTCC HOSTCXX HOSTFC HOSTLD