+define Build/Compile
+endef
+
+ifneq ($(SDK)$(CONFIG_PACKAGE_cbtt),)
+ define Build/without-mysql
+ $(call Build/Template,cbtt,without-mysql,bnbt,)
+ endef
+endif
+$(eval $(Build/without-mysql))
+
+ifneq ($(SDK)$(CONFIG_PACKAGE_cbtt-mysql),)
+ define Build/with-mysql
+ $(call Build/Template,cbtt-mysql,with-mysql,bnbtmysql, \
+ -L$(STAGING_DIR)/usr/lib/mysql -lmysqlclient \
+ )
+ endef
+endif
+$(eval $(Build/with-mysql))
+