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:
parent
bf0481fb48
commit
54cf00d9f8
9
ostree/initramfs-ostree/debian/dl_hook
Executable file
9
ostree/initramfs-ostree/debian/dl_hook
Executable 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
|
6
ostree/initramfs-ostree/debian/meta_data.yaml
Normal file
6
ostree/initramfs-ostree/debian/meta_data.yaml
Normal 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
9
ostree/mttyexec/debian/dl_hook
Executable 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
|
6
ostree/mttyexec/debian/meta_data.yaml
Normal file
6
ostree/mttyexec/debian/meta_data.yaml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
debver: 0.1
|
||||||
|
dl_hook: dl_hook
|
||||||
|
revision:
|
||||||
|
dist: $STX_DIST
|
||||||
|
PKG_GITREVCOUNT: true
|
9
ostree/ostree-upgrade-mgr/debian/dl_hook
Executable file
9
ostree/ostree-upgrade-mgr/debian/dl_hook
Executable 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
|
6
ostree/ostree-upgrade-mgr/debian/meta_data.yaml
Normal file
6
ostree/ostree-upgrade-mgr/debian/meta_data.yaml
Normal 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
15
ostree/ostree/debian/dl_hook
Executable 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/
|
3
ostree/ostree/debian/meta_data.yaml
Normal file
3
ostree/ostree/debian/meta_data.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
debver: 2019.1-1
|
||||||
|
dl_hook: dl_hook
|
Loading…
Reference in New Issue
Block a user