Commit d6d1848c authored by Peter Korsgaard's avatar Peter Korsgaard
Browse files

swupdate: provide sensible error message if no config file is specified



Similar to how we do it for the other kconfig packages.

Signed-off-by: default avatarPeter Korsgaard <peter@korsgaard.com>
parent 02d9a379
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -103,4 +103,12 @@ define SWUPDATE_INSTALL_TARGET_CMDS
		cp -dpf $(@D)/www/* $(TARGET_DIR)/var/www/swupdate)
endef

# Checks to give errors that the user can understand
# Must be before we call to kconfig-package
ifeq ($(BR2_PACKAGE_SWUPDATE)$(BR_BUILDING),yy)
ifeq ($(call qstrip,$(BR2_PACKAGE_SWUPDATE_CONFIG)),)
$(error No Swupdate configuration file specified, check your BR2_PACKAGE_SWUPDATE_CONFIG setting)
endif
endif

$(eval $(kconfig-package))