Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Commit 0705adc

Browse files
committed
v0.9 initial commit
0 parents  commit 0705adc

Some content is hidden

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

44 files changed

+5283
-0
lines changed

CMakeLists.txt

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#
2+
# Copyright Intel Corporation All Rights Reserved.
3+
#
4+
# The source code, information and material ("Material") contained herein is
5+
# owned by Intel Corporation or its suppliers or licensors, and title to such
6+
# Material remains with Intel Corporation or its suppliers or licensors. The
7+
# Material contains proprietary information of Intel or its suppliers and
8+
# licensors. The Material is protected by worldwide copyright laws and treaty
9+
# provisions. No part of the Material may be used, copied, reproduced,
10+
# modified, published, uploaded, posted, transmitted, distributed or disclosed
11+
# in any way without Intel's prior express written permission. No license under
12+
# any patent, copyright or other intellectual property rights in the Material
13+
# is granted to or conferred upon you, either expressly, by implication,
14+
# inducement, estoppel or otherwise. Any license under such intellectual
15+
# property rights must be express and approved by Intel in writing.
16+
#
17+
# Unless otherwise agreed by Intel in writing, you may not remove or alter this
18+
# notice or any other notice embedded in Materials by Intel or Intel's
19+
# suppliers or licensors in any way."
20+
#
21+
22+
23+
CMAKE_MINIMUM_REQUIRED(VERSION 3.10)
24+
25+
# Project name and version
26+
PROJECT("earlyapp")
27+
SET(PROJECT_VERSION_MAJOR 0)
28+
SET(PROJECT_VERSION_MINOR 9)
29+
SET(PROJECT_VERSION_PATCH 0)
30+
31+
# Version file.
32+
CONFIGURE_FILE("version.h.in" ${CMAKE_BINARY_DIR}/include/EAVersion.h)
33+
34+
35+
# Program executable.
36+
SET(PROGRAM_EXE ${CMAKE_PROJECT_NAME})
37+
SUBDIRS(src)
38+
39+
# Service configuration
40+
SUBDIRS(config)
41+
42+
# Resources files
43+
SUBDIRS(res)
44+

NOTICE

Lines changed: 554 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Early App
2+
3+
## Introduction
4+
This software is a testing application that runs on Clear Linux to verify
5+
cold boot to audio, video and RVC (Reverse View Camera) functionalities on Intel platforms.
6+
7+
8+
## License
9+
Early App is distributed under the MIT License.
10+
You may obtain a copy of the License at:
11+
https://opensource.org/licenses/MIT
12+
13+
14+
## Dependencies
15+
- CMake
16+
- Boost libraries
17+
- GStreamer-1.0
18+
19+
20+
## Program options
21+
- --help: Show usage.
22+
- -c [--camera-input] <[ici|v4l2]>: Set camera input source, default is ici.
23+
- -s [--splash-video] <file path>: Set splash video path.
24+
- -d [--cbc-device] <device path>: Set CBC device path.
25+
- --bootup-sound <file path>: Set bootup sound path.
26+
- --rvc-sound <file path>: Set RVC sound path.
27+
- -w [--width] <nubmer>: Set display width.
28+
- -h [--height] <number>: Set display height.
29+
30+
31+
## Building
32+
33+
1. Download sources.
34+
35+
2. Build:
36+
37+
```shell
38+
$ cmake .
39+
$ make
40+
```
41+
42+
3. Run:
43+
44+
```shell
45+
$ src/earlyapp [options]
46+
```
47+
48+

config/CMakeLists.txt

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#
2+
# Copyright Intel Corporation All Rights Reserved.
3+
#
4+
# The source code, information and material ("Material") contained herein is
5+
# owned by Intel Corporation or its suppliers or licensors, and title to such
6+
# Material remains with Intel Corporation or its suppliers or licensors. The
7+
# Material contains proprietary information of Intel or its suppliers and
8+
# licensors. The Material is protected by worldwide copyright laws and treaty
9+
# provisions. No part of the Material may be used, copied, reproduced,
10+
# modified, published, uploaded, posted, transmitted, distributed or disclosed
11+
# in any way without Intel's prior express written permission. No license under
12+
# any patent, copyright or other intellectual property rights in the Material
13+
# is granted to or conferred upon you, either expressly, by implication,
14+
# inducement, estoppel or otherwise. Any license under such intellectual
15+
# property rights must be express and approved by Intel in writing.
16+
#
17+
# Unless otherwise agreed by Intel in writing, you may not remove or alter this
18+
# notice or any other notice embedded in Materials by Intel or Intel's
19+
# suppliers or licensors in any way."
20+
#
21+
22+
23+
# Resource files.
24+
SET(CONF_FILES
25+
earlyapp.service
26+
earlyapp.target
27+
weston.service
28+
cbc_attach.service
29+
earlyapp_resume.service
30+
)
31+
32+
INSTALL(FILES ${CONF_FILES} DESTINATION
33+
${CMAKE_INSTALL_PREFIX}/usr/lib/systemd/system/)
34+

config/cbc_attach.service

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[Unit]
2+
Description=cbc attach
3+
DefaultDependencies=no
4+
Requires=ias.service
5+
After=ias.service
6+
7+
[Service]
8+
ExecStart=/usr/bin/cbc_attach
9+
Restart=no
10+
Type=simple
11+
12+
[Install]
13+
WantedBy=earlyapp.target

config/earlyapp.service

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[Unit]
2+
Description=GP2.0 Early application
3+
DefaultDependencies=no
4+
Requires=ias.service cbc_attach.service
5+
After=ias.service cbc_attach.service
6+
7+
[Service]
8+
Type=simple
9+
Environment=XDG_RUNTIME_DIR=/run/ias
10+
Environment=WAYLAND_DISPLAY=wayland-0
11+
Environment=GST_PLUGIN_PATH=/usr/lib/gstreamer-1.0
12+
ExecStart=/usr/bin/earlyapp --rvc-sound /usr/share/earlyapp/cambeep.wav --bootup-sound /usr/share/earlyapp/countdownbeeps.wav --splash-video /usr/share/earlyapp/countdown.mp4 --width 1920 --height 1080
13+
14+
[Install]
15+
WantedBy=earlyapp.target

config/earlyapp.target

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[Unit]
2+
Description=earlyapp target
3+
Before=sysinit.target systemd-udev-trigger.service systemd-udevd.service systemd-vconsole-setup.service dev-hugepages.mount sys-kernel-debug.mount var-volatile-lib.service kmod-static-nodes.service systemd-modules-load.service systemd-hwdb-update.service systemd-remount-fs.service systemd-sysusers.service
4+
5+
[Install]
6+
WantedBy=basic.target

config/earlyapp_resume.service

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[Unit]
2+
Description=Restart earlyapp after resume from suspend
3+
After=suspend.target
4+
5+
[Service]
6+
Type=simple
7+
ExecStart=/usr/bin/systemctl --no-block restart earlyapp.service
8+
9+
[Install]
10+
WantedBy=suspend.target

config/weston.service

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[Unit]
2+
Description=Weston
3+
DefaultDependencies=no
4+
5+
[Service]
6+
User=root
7+
Environment=HOME=/root
8+
WorkingDirectory=/tmp
9+
Environment=XDG_RUNTIME_DIR=/run/wayland
10+
ExecStartPre=-/bin/mkdir -p /run/wayland
11+
ExecStart=/usr/bin/weston --idle-time=0 --log=/var/log/weston.log
12+
ExecStop=/usr/bin/killall -s TERM weston
13+
StandardInput=tty
14+
StandardOutput=journal
15+
StandardError=journal
16+
TTYPath=/dev/tty2
17+
SupplementaryGroups=input
18+
19+
[Install]
20+
WantedBy=earlyapp.target
21+

0 commit comments

Comments
 (0)