On the OpenWrt build bots the compile currently fails: make[8]: Entering directory '/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a5+vfpv4_musl_eabi/libmbim-1.20.0/src/common' CC libmbim_common_la-mbim-common.lo cc1: error: /builder/shared-workdir/build/sdk/staging_dir/target-arm_cortex-a5+vfpv4_musl_eabi/include: No such file or directory [-Werror=missing-include-dirs] cc1: all warnings being treated as errors The directory in question gets added to TARGET_CPPFLAGS by rules.mk. Nothing usually gets installed to that directory, so unsurprisingly it may not exist on the build bots. On first glance this problem cannot be reproduced. But once autoreconf is called this becomes possible. If called without "--enable-more-warnings", configure adds -Werror to the flags. This commit adds "--enable-more-warnings=yes" to the build. This way the extra warnings are kept in place, but they aren't turned into errors no more. "PKG_FIXUP:=autoreconf" is also added so that it's easier to forecast build failures on the build bots when preparing future pull request. Last but not least "--disable-silent-rules" is added, because more output is usually welcome for debugging, be it on the build bots or at home/the office. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
97 lines
2.3 KiB
Makefile
97 lines
2.3 KiB
Makefile
#
|
|
# Copyright (C) 2016 Velocloud Inc.
|
|
# Copyright (C) 2016 Aleksander Morgado <aleksander@aleksander.es>
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=libmbim
|
|
PKG_VERSION:=1.20.0
|
|
PKG_RELEASE:=3
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
|
PKG_SOURCE_URL:=https://www.freedesktop.org/software/libmbim
|
|
PKG_HASH:=2cf7c6c7aa9e962a589f61bff2766035b61792ef961131a21fcbbe043f91a866
|
|
|
|
PKG_MAINTAINER:=Nicholas Smith <nicholas.smith@telcoantennas.com.au>
|
|
|
|
PKG_INSTALL:=1
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
PKG_FIXUP:=autoreconf
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/nls.mk
|
|
|
|
CONFIGURE_ARGS += \
|
|
--disable-static \
|
|
--disable-gtk-doc \
|
|
--disable-gtk-doc-html \
|
|
--disable-gtk-doc-pdf \
|
|
--disable-silent-rules \
|
|
--enable-more-warnings=yes
|
|
|
|
define Package/libmbim
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
DEPENDS:=+glib2
|
|
TITLE:=Helper library and utils to talk to MBIM enabled modems
|
|
URL:=https://www.freedesktop.org/wiki/Software/libmbim
|
|
LICENSE:=LGPL-2.0-or-later
|
|
LICENSE_FILES:=COPYING.LIB
|
|
endef
|
|
|
|
define Package/libmbim/description
|
|
Helper library to talk to MBIM enabled modems.
|
|
Add mbim-utils for extra utilities.
|
|
endef
|
|
|
|
define Package/mbim-utils
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
DEPENDS:=+libmbim
|
|
TITLE:=Utilities to talk to MBIM enabled modems
|
|
URL:=https://www.freedesktop.org/wiki/Software/libmbim
|
|
LICENSE:=GPL-2.0-or-later
|
|
LICENSE_FILES:=COPYING
|
|
endef
|
|
|
|
CONFIGURE_ARGS += \
|
|
--without-udev \
|
|
--without-udev-base-dir
|
|
|
|
define Build/InstallDev
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
$(CP) \
|
|
$(PKG_INSTALL_DIR)/usr/include/libmbim-glib \
|
|
$(1)/usr/include/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) \
|
|
$(PKG_INSTALL_DIR)/usr/lib/libmbim*.so* \
|
|
$(1)/usr/lib/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
|
$(CP) \
|
|
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/mbim-glib.pc \
|
|
$(1)/usr/lib/pkgconfig
|
|
endef
|
|
|
|
define Package/libmbim/install
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) \
|
|
$(PKG_INSTALL_DIR)/usr/lib/libmbim*.so.* \
|
|
$(1)/usr/lib/
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/mbim-proxy $(1)/usr/lib/
|
|
endef
|
|
|
|
define Package/mbim-utils/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mbimcli $(1)/usr/bin/
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mbim-network $(1)/usr/bin/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,libmbim))
|
|
$(eval $(call BuildPackage,mbim-utils))
|