1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR
)/rules.mk
7 PKG_VERSION
:= 2448644657e5fbfd82299416d218396ee1115ece
10 PKG_DESCR
:= videocore tools and libraries
11 PKG_SECTION
:= libs
/video
12 PKG_BUILDDEP
:= cmake-host
13 PKG_NEEDS
:= c
++ threads
14 PKG_URL
:= https
://github.com
/raspberrypi
/userland
15 PKG_SITES
:= https
://github.com
/raspberrypi
/userland.git
17 PKG_SUBPKGS
:= BCM28XX_VC_TOOLS BCM28XX_VC_LIBS BCM28XX_VC_GL_LIBS BCM28XX_VC_DEBUG
18 PKGSS_BCM28XX_VC_TOOLS
:=bcm28xx-vc-libs
19 PKGSC_BCM28XX_VC_TOOLS
:=sys
/hw
20 PKGSD_BCM28XX_VC_TOOLS
:=videocore tools
(vcgencmd
,..
)
21 PKGSC_BCM28XX_VC_LIBS
:= libs
/misc
22 PKGSD_BCM28XX_VC_LIBS
:=videocore library
23 PKGSC_BCM28XX_VC_DEBUG
:=libs
/misc
24 PKGSD_BCM28XX_VC_DEBUG
:=videocore debug library
25 PKGSC_BCM28XX_VC_GL_LIBS
:=libs
/video
26 PKGSS_BCM28XX_VC_GL_LIBS
:=bcm28xx-vc-libs
27 PKGSD_BCM28XX_VC_GL_LIBS
:=videocore gl library
29 PKG_SYSTEM_DEPENDS
:= raspberry-pi raspberry-pi0 raspberry-pi2 raspberry-pi3 raspberry-pi3-64 raspberry-pi3p raspberry-pi3p-64
31 include $(ADK_TOPDIR
)/mk
/package.mk
33 $(eval
$(call PKG_template
,BCM28XX_VC_TOOLS
,bcm28xx-vc-tools
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(PKGSS_BCM28XX_VC_TOOLS
),$(PKG_DESCR
),$(PKGSC_BCM28XX_VC_TOOLS
)))
34 $(eval
$(call PKG_template
,BCM28XX_VC_LIBS
,bcm28xx-vc-libs
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(PKG_DEPENDS
),$(PKG_DESCR
),$(PKG_SECTION
)))
35 $(eval
$(call PKG_template
,BCM28XX_VC_DEBUG
,bcm28xx-vc-debug
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(PKG_DEPENDS
),$(PKG_DESCR
),$(PKG_SECTION
)))
36 $(eval
$(call PKG_template
,BCM28XX_VC_GL_LIBS
,bcm28xx-vc-gl-libs
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(PKG_DEPENDS
),$(PKG_DESCR
),$(PKG_SECTION
)))
39 CMAKE_FLAGS
+= -DVMCS_INSTALL_PREFIX
=/usr
41 bcm28xx-vc-tools-install
:
42 $(INSTALL_DIR
) $(IDIR_BCM28XX_VC_TOOLS
)/usr
/bin
43 $(INSTALL_BIN
) $(WRKINST
)/usr
/bin
/vcgencmd \
44 $(IDIR_BCM28XX_VC_TOOLS
)/usr
/bin
45 $(INSTALL_BIN
) $(WRKINST
)/usr
/bin
/dtoverlay \
46 $(IDIR_BCM28XX_VC_TOOLS
)/usr
/bin
48 bcm28xx-vc-debug-install
:
49 $(INSTALL_DIR
) $(IDIR_BCM28XX_VC_DEBUG
)/usr
/lib
50 $(CP
) $(WRKINST
)/usr
/lib
/libdebug_sym.so \
51 $(IDIR_BCM28XX_VC_DEBUG
)/usr
/lib
53 bcm28xx-vc-libs-install
:
54 $(INSTALL_DIR
) $(IDIR_BCM28XX_VC_LIBS
)/usr
/lib
55 $(CP
) $(WRKINST
)/usr
/lib
/libvcos.so \
56 $(IDIR_BCM28XX_VC_LIBS
)/usr
/lib
57 $(CP
) $(WRKINST
)/usr
/lib
/libvchiq_arm.so \
58 $(IDIR_BCM28XX_VC_LIBS
)/usr
/lib
59 $(CP
) $(WRKINST
)/usr
/lib
/libbcm_host.so \
60 $(IDIR_BCM28XX_VC_LIBS
)/usr
/lib
61 $(CP
) $(WRKINST
)/usr
/lib
/libcontainers.so \
62 $(IDIR_BCM28XX_VC_LIBS
)/usr
/lib
63 $(CP
) $(WRKINST
)/usr
/lib
/libdtovl.so \
64 $(IDIR_BCM28XX_VC_LIBS
)/usr
/lib
66 bcm28xx-vc-gl-libs-install
:
67 $(INSTALL_DIR
) $(IDIR_BCM28XX_VC_GL_LIBS
)/usr
/lib
68 $(CP
) $(WRKINST
)/usr
/lib
/libmmal
*.so \
69 $(IDIR_BCM28XX_VC_GL_LIBS
)/usr
/lib
70 $(CP
) $(WRKINST
)/usr
/lib
/libopenmaxil.so \
71 $(IDIR_BCM28XX_VC_GL_LIBS
)/usr
/lib
72 $(CP
) $(WRKINST
)/usr
/lib
/libvcsm.so \
73 $(IDIR_BCM28XX_VC_GL_LIBS
)/usr
/lib
74 $(CP
) $(WRKINST
)/usr
/lib
/libEGL.so \
75 $(IDIR_BCM28XX_VC_GL_LIBS
)/usr
/lib
76 $(CP
) $(WRKINST
)/usr
/lib
/libGLESv2.so \
77 $(IDIR_BCM28XX_VC_GL_LIBS
)/usr
/lib
78 $(CP
) $(WRKINST
)/usr
/lib
/libOpenVG.so \
79 $(IDIR_BCM28XX_VC_GL_LIBS
)/usr
/lib
80 $(CP
) $(WRKINST
)/usr
/lib
/libbrcm
*.so \
81 $(IDIR_BCM28XX_VC_GL_LIBS
)/usr
/lib
82 (cd
$(IDIR_BCM28XX_VC_GL_LIBS
)/usr
/lib
&& ln
-sf libEGL.so libEGL.so
.1)
84 include $(ADK_TOPDIR
)/mk
/pkg-bottom.mk