Developing lightweight computation at the DSG edge

Commit 286abce0 authored by Roger Pueyo Centelles's avatar Roger Pueyo Centelles
Browse files

Create qmpfeeds.conf with qMp's feeds



When making a qMp release, include a qmpfeeds.conf file under /etc/opkg/
to add qMp's feeds' packages.
Signed-off-by: default avatarRoger Pueyo Centelles <roger.pueyo@guifi.net>
parent 870ffa3a
...@@ -22,6 +22,7 @@ VERSION_BUG_URL="${bug_url:-https://dev.qmp.cat/projects/qmp/issues}" ...@@ -22,6 +22,7 @@ VERSION_BUG_URL="${bug_url:-https://dev.qmp.cat/projects/qmp/issues}"
VERSION_SUPPORT_URL="${support_url:-https://qmp.cat/Documentation}" VERSION_SUPPORT_URL="${support_url:-https://qmp.cat/Documentation}"
QMP_CODENAME=$VERSION_NICK QMP_CODENAME=$VERSION_NICK
QMP_RELEASE=$VERSION_NUMBER QMP_RELEASE=$VERSION_NUMBER
QMP_DOWNLOADS_URL="${qmp_downloads_url:-http://fw.qmp.cat}"
usage() { usage() {
echo "Usage: $0 [-f [--force]] [-d <target> [--sdk|ib|force]] [-i <target> [--sdk-file=<file>|ib-file=<file>]] echo "Usage: $0 [-f [--force]] [-d <target> [--sdk|ib|force]] [-i <target> [--sdk-file=<file>|ib-file=<file>]]
...@@ -144,6 +145,8 @@ cook() { ...@@ -144,6 +145,8 @@ cook() {
} }
cp -rf ${myfiles}/* ${ib_files}/ 2>/dev/null cp -rf ${myfiles}/* ${ib_files}/ 2>/dev/null
[ "$qmp_release" == "1" ] && generate_qmp_feeds_file $target
# make binary using imagebuilder # make binary using imagebuilder
local fw_extra_name="$flavor" local fw_extra_name="$flavor"
[ -n "$community" ] && fw_extra_name="$community-$community_profile" [ -n "$community" ] && fw_extra_name="$community-$community_profile"
...@@ -429,6 +432,19 @@ list_flavors() { ...@@ -429,6 +432,19 @@ list_flavors() {
cat qmp.flavors.conf | egrep -v "^_|^#|^$" | awk -F= '{print $1}' cat qmp.flavors.conf | egrep -v "^_|^#|^$" | awk -F= '{print $1}'
} }
generate_qmp_feeds_file() {
local target=$1
local qmp_feeds_dir="${PWD}/files/etc/opkg"
[ ! -d "$qmp_feeds_dir" ] && mkdir -p "$qmp_feeds_dir"
[ -f $qmp_feeds_dir/qmpfeeds.conf ] && rm -f $qmp_feeds_dir/qmpfeeds.conf
for r in $sdk_install_repos; do
this_qmp_feed_url="$QMP_DOWNLOADS_URL/Releases/$VERSION_NUMBER/packages/$(get_arch_from_ib $target)/$r"
echo "src/gz qmp_$r $this_qmp_feed_url" >> $qmp_feeds_dir/qmpfeeds.conf
done
}
get_profile_names() { get_profile_names() {
local profiles="$(cat $release/$target/ib/.profiles.mk 2>/dev/null | grep ^PROFILE_NAMES | \ local profiles="$(cat $release/$target/ib/.profiles.mk 2>/dev/null | grep ^PROFILE_NAMES | \
sed -e s/"PROFILE_NAMES = Default"//g -e s/DEVICE_//g)" sed -e s/"PROFILE_NAMES = Default"//g -e s/DEVICE_//g)"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment