Skip to content

Commit c6fa929

Browse files
committed
Merge with master
2 parents 3a6b388 + b658949 commit c6fa929

File tree

96 files changed

+155947
-562
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+155947
-562
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ Select a configuration for your embedded device from the `configs/` directory. F
2525
```
2626
make raspberrypi2_wpe_defconfig
2727
```
28-
Buildroot provides you a menuconfig option for the first time. Select additional packages if you require or exit and save the config.
28+
Buildroot provides you a menuconfig option for the first time. Select additional packages if you require or exit and save the config.
29+
30+
**Note** that the `_ml` (Metrological) configurations such as `raspberrypi2_wpe_ml_defconfig` should be considered for internal Metrological use only. Unless you have access to the private repositories required, the build will fail.
2931

3032
### Build
3133
To build:

board/homecast/homecast.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,11 @@ rsync -ar --files-from="${ROOTFS_FILES}" "${TARGET_DIR}" "${ROOTFS_DIR}"
3434
mkdir -p "${ROOTFS_DIR}/usr/share/fonts/ttf-bitstream-vera"
3535
cp -f "${TARGET_DIR}/usr/share/fonts/ttf-bitstream-vera/Vera.ttf" "${ROOTFS_DIR}/usr/share/fonts/ttf-bitstream-vera/"
3636

37-
# WebBridge startup script
38-
mkdir -p "${ROOTFS_DIR}/homecast"
39-
cp -pf "${BOARD_DIR}/homecast/webbridge" "${ROOTFS_DIR}/homecast"
40-
#cp -pf "${BOARD_DIR}/homecast/webbridge-stub" "${ROOTFS_DIR}/homecast"
37+
# move utility lib of brcm plugin to usr/lib
38+
mv "${ROOTFS_DIR}/usr/lib/gstreamer-1.0/libbrcmgstutil.so" "${ROOTFS_DIR}/usr/lib/"
39+
40+
# WPEFramework launcher
41+
cp -pf "${BOARD_DIR}/homecast/wpeframework.sh" "${ROOTFS_DIR}"
4142

4243
# WebServer path
4344
mkdir -p "${ROOTFS_DIR}/www"

board/homecast/homecast.txt

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
WPENetworkProcess
22
WPEWebProcess
3-
WPEDatabaseProcess
3+
WPEStorageProcess
44
WPEFramework
55
WPEProcess
66
gst-plugin-scanner
@@ -13,6 +13,7 @@ libcairo.so
1313
libcares.so
1414
libcrypto.so
1515
libcurl.so
16+
libepoxy.so
1617
libevdev.so
1718
libexpat.so
1819
libfaad.so
@@ -61,6 +62,7 @@ libnettle.so
6162
liborc-0.4.so
6263
liborc-test-0.4.so
6364
libpcre.so
65+
libunistring.so
6466
libpixman-1.so
6567
libplayready.so
6668
libpng16.so
@@ -108,8 +110,18 @@ libWPEFrameworkTracing.so
108110
libWPEFrameworkVirtualInput.so
109111
libWPEFrameworkTimeSync.so
110112
libWPEFrameworkWebShell.so
113+
libWPEFrameworkSwitchBoard.so
114+
libWPEFrameworkProvisioning.so
115+
libWPEFrameworkNetflix.so
111116
libnxclient.so
112117
libWPEBackend.so
113118
libWPEBackend-rdk.so
114119
libWPEBackend-default.so
115120
libwebpdemux.so
121+
libbrcmgstutil.so
122+
libbrcmaudiodecoder.so
123+
libbrcmaudiofilter.so
124+
libbrcmaudiosink.so
125+
libbrcmvideodecoder.so
126+
libbrcmvideosink.so
127+
libbrcmvidfilter.so

board/homecast/homecast/metrological.sh

Lines changed: 0 additions & 31 deletions
This file was deleted.

board/homecast/homecast/webbridge

Lines changed: 0 additions & 75 deletions
This file was deleted.
-237 KB
Binary file not shown.
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
#!/bin/sh
2+
export SOURCE=/tmp/nfs/metrological
3+
export DESTINATION=/tmp/nfs/cwc
4+
export LD_LIBRARY_PATH=$SOURCE/usr/lib:/lib:/usr/lib:$SOURCE/lib
5+
export PATH=$PATH:$SOURCE/usr/bin
6+
7+
export GST_PLUGIN_SCANNER=$SOURCE/usr/libexec/gstreamer-1.0/gst-plugin-scanner
8+
export GST_PLUGIN_SYSTEM_PATH=$SOURCE/usr/lib/gstreamer-1.0
9+
10+
# Currently the root system is read-only. Since we cannot add anything there we bind
11+
# existing directories with a copy of the actual system. All the stuff we want to
12+
# add is symbolicly linked in from our sources..
13+
if [ ! -d $DESTINATION ]; then
14+
15+
mkdir -p $DESTINATION/share
16+
mkdir -p $DESTINATION/etc
17+
mkdir -p $DESTINATION/lib
18+
cp -rfap /usr/share/* $DESTINATION/share
19+
cp -rfap /etc/* $DESTINATION/etc
20+
cp -rfap /usr/lib/* $DESTINATION/lib
21+
22+
ln -s $SOURCE/usr/share/mime $DESTINATION/share/mime
23+
ln -s $SOURCE/usr/share/X11 $DESTINATION/share/X11
24+
ln -s $SOURCE/usr/share/WPEFramework $DESTINATION/share/WPEFramework
25+
ln -s $SOURCE/usr/share/fonts $DESTINATION/share/fonts
26+
ln -s $SOURCE/etc/ssl $DESTINATION/etc/ssl
27+
ln -s $SOURCE/etc/ssl $DESTINATION/lib/ssl
28+
ln -s $SOURCE/etc/fonts $DESTINATION/etc/fonts
29+
ln -s $SOURCE/etc/WPEFramework $DESTINATION/etc/WPEFramework
30+
ln -s $SOURCE/usr/lib/gio $DESTINATION/lib/gio
31+
ln -s /lib/libv3ddriver.so $SOURCE/usr/lib/libEGL.so
32+
ln -s /lib/libv3ddriver.so $SOURCE/usr/lib/libGLESv2.so
33+
fi
34+
35+
grep -q "/usr/share" /proc/mounts && echo "/usr/share is already mounted" || mount --bind $DESTINATION/share/ /usr/share/
36+
grep -q "/etc" /proc/mounts && echo "/etc is already mounted" || mount --bind $DESTINATION/etc/ /etc/
37+
grep -q "/usr/lib" /proc/mounts && echo "/usr/lib is already mounted" || mount --bind $DESTINATION/lib/ /usr/lib/
38+
39+
cp -rfap $SOURCE/etc/playready/* /etc/playready/
40+
ln -s $SOURCE/etc/ssl /etc/ssl
41+
42+
if [ ! -d $SOURCE/persistent/Netflix ]; then
43+
mkdir -p $SOURCE/persistent/Netflix/dpi
44+
ln -sfn /etc/playready $SOURCE/persistent/Netflix/dpi/playready
45+
fi
46+
47+
# Firewall for non-prod builds
48+
iptables -I INPUT -i eth0 -p tcp --dport 80 -m state --state NEW,ESTABLISHED -j ACCEPT
49+
50+
LD_PRELOAD=$SOURCE/lib/libstdc\+\+.so.6.0.21:/lib/libnexus.so WPEFramework -c $SOURCE/etc/WPEFramework/config.json
51+

board/raspberrypi/config.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ avoid_warnings=1
2727

2828
gpu_mem_256=128
2929
gpu_mem_512=196
30-
gpu_mem_1024=256
30+
gpu_mem_1024=384
3131

3232
################################################################################
3333
#

board/raspberrypi/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
ip = deviceInfo.Addresses.IpAddress;
5454
else {
5555
for (var i in deviceInfo.addresses) {
56-
if (deviceInfo.addresses[i].ip && deviceInfo.addresses[i].ip !== '127.0.0.1') {
56+
if (Array.isArray(deviceInfo.addresses[i].ip) && deviceInfo.addresses[i].ip[0] !== '127.0.0.1') {
5757
ip = deviceInfo.addresses[i].ip;
5858
break;
5959
}

board/raspberrypi/post-build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22

33
set -u
44
set -e

0 commit comments

Comments
 (0)