-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmake-multiplatform: fix for others than x86-64
- Loading branch information
1 parent
e1e4c10
commit b6c4ad3
Showing
4 changed files
with
194 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
.github/workflows/cmake-multi-platform/install-greengrass-lite.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
WIP | ||
|
||
|
||
install -d ${D}/${gg_rundir} | ||
chown ${gg_user}:${gg_group} ${D}/${gg_rundir} | ||
|
||
install -d ${D}/${sysconfdir}/greengrass | ||
install -d ${D}/${sysconfdir}/greengrass/config.d | ||
|
||
install -m 0644 ${WORKDIR}/greengrass-lite.yaml ${D}/${sysconfdir}/greengrass/config.d | ||
sed -i -e 's,@GG_WORKING_DIR@,${gg_workingdir},g' \ | ||
-e 's,@GG_USER@,${gg_user},g' \ | ||
-e 's,@GG_GROUP@,${gg_group},g' \ | ||
${D}/${sysconfdir}/greengrass/config.d/greengrass-lite.yaml |
58 changes: 58 additions & 0 deletions
58
.github/workflows/cmake-multi-platform/readme.template.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
This readme file will be generated by the build process, done now for the bug bash manually. | ||
|
||
################## | ||
|
||
SOME GENERAL INFO about gg-lite | ||
|
||
|
||
################## | ||
|
||
INSTALLATION: | ||
################## | ||
|
||
copy *.deb package from zip onto your device (e.g. scp) | ||
|
||
copy ConnectionKit zip onto your device (e.g. scp) | ||
|
||
sudo apt update | ||
|
||
sudo apt install aws-greengrass-lite-0.1.1-Linux.deb | ||
|
||
sudo apt install zip | ||
|
||
sudo mkdir /etc/greengrass/ | ||
|
||
sudo unzip -jo connectionKit.zip -d /etc/greengrass/ | ||
|
||
sudo sed -i -e s:{{config_dir}}:\/etc\/greengrass:g -e s:{{data_dir}}:\/var\/lib\/aws-greengrass-v2:g -e s:{{nucleus_component}}:aws.greengrass.Nucleus-Lite:g /etc/greengrass/config.yaml | ||
|
||
add greengrass lite config fragment to /etc/greengrass/config.d/greengrass-lite.yaml | ||
|
||
replace @GG_WORKING_DIR@ with the directory you want to run it - can be the Desktop for testing: e.g. /home/ubuntu/Desktop | ||
replace @GG_USER@ and @GG_GROUP@ with user and group you want to run it - e.g. ubuntu or the user you created. | ||
|
||
--- | ||
system: | ||
rootPath: "@GG_WORKING_DIR@" | ||
services: | ||
aws.greengrass.Nucleus-Lite: | ||
componentType: "NUCLEUS" | ||
configuration: | ||
runWithDefault: | ||
posixUser: "@GG_USER@:@GG_GROUP@" | ||
greengrassDataPlanePort: "8443" | ||
tesCredUrl: "http://127.0.0.1:8080/" | ||
|
||
|
||
run_nucleus | ||
|
||
################## | ||
|
||
|
||
SOME ADDITIONAL INFO | ||
|
||
|
||
################## | ||
|
||
|
||
SOME LICENSE TEXT HERE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters