mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 23:12:32 +00:00
e05659ef59
This is the last update for bcm27xx-userland as it has been
deprecated but funcional up to raspberry pi 5.
96a7334 README: Update to make it clear that most code in this repo is deprecated
3c97f76 userland: dtoverlay: /boot/firmware is a valid path
153a235 Assorted clang static analysis fixes
eca070c bcm_host: Update kms/fkms check for pi5
06a7618 dtoverlay: Support bcm2712 as a platform
0489c07 dtoverlay: Add dtoverlay_first/next_subnode
a1c7f81 dtoverlay: Support literal assignments of path strings
44a3953 raspivid: Also flush PTS file if flush is enabled
cc1ca18 userland: dtoverlay: Use os_prefix if set
9d5250f libfdt: Add null-ptr check for prop-data to resolve clang --analyzer warning
50527c6 mmal: Only include Videocore components if not running on Videocore
df245ea tvservice: Update unsupported message to recommend kmsprint
de0cfe8 dtoverlay: Fix clang warnings
0182f05 dtoverlay: Fix various compiler warnings
2a6306b dtoverlay: Fix path rebasing and exports
d1e92d7 dtoverlay: Add support for string escape sequences
b1ee39e gencmd: Add a fallback to mailbox interface if vchiq is not available
54fd97a hello_pi: Fix some build issues
Signed-off-by: Marty Jones <mj8263788@gmail.com>
(cherry picked from commit 3df664101a
)
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
98 lines
2.8 KiB
Makefile
98 lines
2.8 KiB
Makefile
#
|
|
# Copyright (C) 2019-2020 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=bcm27xx-userland
|
|
PKG_VERSION:=96a7334ae9d5fc9db7ac92e59852377df63f1848
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://codeload.github.com/raspberrypi/userland/tar.gz/$(PKG_VERSION)?
|
|
PKG_HASH:=557ee8390de5db1ed90386c1ba0221e7f6f9dd87e858a00a34be3b1f9ede193f
|
|
|
|
PKG_FLAGS:=nonshared
|
|
|
|
PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
|
|
PKG_LICENSE:=BSD-3-Clause
|
|
PKG_LICENSE_FILES:=LICENCE
|
|
|
|
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)
|
|
|
|
define Package/bcm27xx-userland
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
DEPENDS:=@TARGET_bcm27xx
|
|
TITLE:=BCM27xx userland tools
|
|
DEFAULT:=y if TARGET_bcm27xx
|
|
endef
|
|
|
|
define Package/bcm27xx-userland/description
|
|
BCM27xx userland tools including vcgencmd and tvservice.
|
|
endef
|
|
|
|
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
|
|
|
|
define Package/bcm27xx-userland/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dtmerge $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dtparam $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dtoverlay $(1)/usr/bin
|
|
ifneq ($(ARCH),aarch64)
|
|
$(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
|
|
endif
|
|
$(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
|
|
|
|
$(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
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/ $(1)/usr/
|
|
|
|
$(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/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,bcm27xx-userland))
|
|
$(eval $(call BuildPackage,bcm27xx-userland-dev))
|