Add debian packages for ostree

meta-lat (open sources of LAT: git://github.com/Wind-River/meta-lat)
provides 4 packages related to ostree:

initramfs-ostree
mttyexec
ostree-upgrade-mgr
ostree

which are needed to build image by LAT, so adding the debian folders
for these 4 packages in integ layer to build them from source.

Story: 2009221
Task: 43324
Signed-off-by: Yue Tao <yue.tao@windriver.com>
Change-Id: I041985c826df1c51cd2981e70eb1715ee10d2fa0
This commit is contained in:
Yue Tao 2021-09-15 18:00:04 +08:00
parent bf0481fb48
commit 54cf00d9f8
8 changed files with 63 additions and 0 deletions

View File

@ -0,0 +1,9 @@
#!/bin/bash
set -x
LOCAL_DIR=$1
PKGNAME=initramfs-ostree
BASE_DIR=$STX_GIT_SRC_DIR/meta-lat/data/debian
SRC_DIR=$BASE_DIR/$PKGNAME/sources
DEB_DIR=$BASE_DIR/$PKGNAME/metadata/debian
cp -Lr $SRC_DIR $LOCAL_DIR
cp -Lr $DEB_DIR $LOCAL_DIR

View File

@ -0,0 +1,6 @@
---
debver: 1.0
dl_hook: dl_hook
revision:
dist: $STX_DIST
PKG_GITREVCOUNT: true

9
ostree/mttyexec/debian/dl_hook Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
LOCAL_DIR=$1
PKGNAME=mttyexec
BASE_DIR=$STX_GIT_SRC_DIR/meta-lat/data/debian
SRC_DIR=$BASE_DIR/$PKGNAME/sources
DEB_DIR=$BASE_DIR/$PKGNAME/metadata/debian
cp -Lr $SRC_DIR $LOCAL_DIR
cp -Lr $DEB_DIR $LOCAL_DIR

View File

@ -0,0 +1,6 @@
---
debver: 0.1
dl_hook: dl_hook
revision:
dist: $STX_DIST
PKG_GITREVCOUNT: true

View File

@ -0,0 +1,9 @@
#!/bin/bash
LOCAL_DIR=$1
PKGNAME=ostree-upgrade-mgr
BASE_DIR=$STX_GIT_SRC_DIR/meta-lat/data/debian
SRC_DIR=$BASE_DIR/$PKGNAME/sources
DEB_DIR=$BASE_DIR/$PKGNAME/metadata/debian
cp -Lr $SRC_DIR $LOCAL_DIR
cp -Lr $DEB_DIR $LOCAL_DIR

View File

@ -0,0 +1,6 @@
---
debver: 1.0
dl_hook: dl_hook
revision:
dist: $STX_DIST
PKG_GITREVCOUNT: true

15
ostree/ostree/debian/dl_hook Executable file
View File

@ -0,0 +1,15 @@
#!/bin/bash
LOCAL_DIR=$1
PKGNAME=ostree
BASE_DIR=$STX_GIT_SRC_DIR/
SRC_DIR=$BASE_DIR/$PKGNAME
META_DIR=$BASE_DIR/meta-lat/data/debian/$PKGNAME/metadata_patches
PATCHES_DIR=$BASE_DIR/meta-lat/data/debian/$PKGNAME/source_patches
cp -Lr $SRC_DIR $LOCAL_DIR
cd $LOCAL_DIR
for patch in `ls ${META_DIR}/*.patch`; do
patch -p1 < $patch || exit 1
done
mkdir debian/patches/lat
cp -f ${PATCHES_DIR}/*.patch debian/patches/lat/

View File

@ -0,0 +1,3 @@
---
debver: 2019.1-1
dl_hook: dl_hook