2019-12-28 14:18:27 +00:00
|
|
|
#
|
2020-02-28 18:30:16 +00:00
|
|
|
# Copyright (C) 2019-2020 OpenWrt.org
|
2019-12-28 14:18:27 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2020-02-08 20:58:55 +00:00
|
|
|
PKG_NAME:=bcm27xx-userland
|
2022-05-17 12:56:28 +00:00
|
|
|
PKG_VERSION:=c4fd1b8986c6d6d4ae5cd51e65a8bbeb495dfa4e
|
2023-05-17 13:08:40 +00:00
|
|
|
PKG_RELEASE:=1
|
2019-12-28 14:18:27 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=https://codeload.github.com/raspberrypi/userland/tar.gz/$(PKG_VERSION)?
|
2022-05-17 12:56:28 +00:00
|
|
|
PKG_HASH:=ab8a5b27c34cf1b97de87b895448a6355229f73b679866b47c51a723273cc8ae
|
2019-12-28 14:18:27 +00:00
|
|
|
|
|
|
|
PKG_FLAGS:=nonshared
|
|
|
|
|
|
|
|
PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
|
2021-03-27 19:48:30 +00:00
|
|
|
PKG_LICENSE:=BSD-3-Clause
|
|
|
|
PKG_LICENSE_FILES:=LICENCE
|
2019-12-28 14:18:27 +00:00
|
|
|
|
|
|
|
CMAKE_INSTALL:=1
|
|
|
|
CMAKE_OPTIONS+=-DVMCS_INSTALL_PREFIX=/usr
|
|
|
|
|
|
|
|
ifeq ($(ARCH),aarch64)
|
|
|
|
CMAKE_OPTIONS+=-DARM64=ON
|
|
|
|
else
|
|
|
|
CMAKE_OPTIONS+=-DARM64=OFF
|
|
|
|
endif
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
|
|
|
|
TAR_OPTIONS:=--strip-components 1 $(TAR_OPTIONS)
|
|
|
|
TAR_CMD=$(HOST_TAR) -C $(1) $(TAR_OPTIONS)
|
|
|
|
|
2020-02-08 20:58:55 +00:00
|
|
|
define Package/bcm27xx-userland
|
2019-12-28 14:18:27 +00:00
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
2020-02-08 20:58:55 +00:00
|
|
|
DEPENDS:=@TARGET_bcm27xx
|
|
|
|
TITLE:=BCM27xx userland tools
|
|
|
|
DEFAULT:=y if TARGET_bcm27xx
|
2019-12-28 14:18:27 +00:00
|
|
|
endef
|
|
|
|
|
2020-02-08 20:58:55 +00:00
|
|
|
define Package/bcm27xx-userland/description
|
|
|
|
BCM27xx userland tools including vcgencmd and tvservice.
|
2019-12-28 14:18:27 +00:00
|
|
|
endef
|
|
|
|
|
2021-03-27 19:48:30 +00:00
|
|
|
define Package/bcm27xx-userland-dev
|
|
|
|
SECTION:=devel
|
|
|
|
CATEGORY:=Development
|
|
|
|
SUBMENU:=Libraries
|
|
|
|
DEPENDS:=@TARGET_bcm27xx +bcm27xx-userland
|
|
|
|
TITLE:=Development files of BCM27xx userland tools
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/bcm27xx-userland-dev/description
|
|
|
|
This package contains the header and static libraries of
|
|
|
|
the BCM27xx userland tools.
|
|
|
|
endef
|
|
|
|
|
2020-02-08 20:58:55 +00:00
|
|
|
define Package/bcm27xx-userland/install
|
2019-12-28 14:18:27 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2020-02-28 18:30:16 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dtmerge $(1)/usr/bin
|
2019-12-28 14:18:27 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dtparam $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dtoverlay $(1)/usr/bin
|
2020-05-28 13:27:17 +00:00
|
|
|
ifneq ($(ARCH),aarch64)
|
2020-02-28 18:30:16 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/raspistill $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/raspivid $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/raspividyuv $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/raspiyuv $(1)/usr/bin
|
2020-05-28 13:27:17 +00:00
|
|
|
endif
|
2019-12-28 14:18:27 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/tvservice $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/vcgencmd $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/vcmailbox $(1)/usr/bin
|
|
|
|
|
2021-03-27 19:48:30 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so $(1)/usr/lib/
|
|
|
|
ifneq ($(ARCH),aarch64)
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/plugins
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/plugins/ $(1)/usr/lib/
|
|
|
|
endif
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/bcm27xx-userland-dev/install
|
2019-12-28 14:18:27 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/ $(1)/usr/
|
|
|
|
|
2021-03-27 19:48:30 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig $(1)/usr/lib/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.a $(1)/usr/lib/
|
2019-12-28 14:18:27 +00:00
|
|
|
endef
|
|
|
|
|
2020-02-08 20:58:55 +00:00
|
|
|
$(eval $(call BuildPackage,bcm27xx-userland))
|
2021-03-27 19:48:30 +00:00
|
|
|
$(eval $(call BuildPackage,bcm27xx-userland-dev))
|