Maybe we could make this dependency dynamically, if the BR2_PACKAGE_CMOCKA is enabled. For Example: ifeq ($(BR2_PACKAGE_CMOCKA),y) BIND_CONF_OPTS += --with-cmocka BIND_DEPENDENCIES += cmocka else BIND_CONF_OPTS += --without-cmocka endif