blob: 340ad2c16c80c4fb07517a14cd7fd7ad4fbb57b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
BASEFILESISSUEINSTALL = "do_install_bmc_issue"
DISTRO_HOSTNAME = "bmc"
do_install_bmc_issue () {
if [ "${DISTRO_HOSTNAME}" != "" ]; then
echo ${DISTRO_HOSTNAME} > ${D}${sysconfdir}/hostname
else
echo ${MACHINE} > ${D}${sysconfdir}/hostname
fi
# found out the source dir
dir=$(pwd)
while [ -n "$dir" -a "$dir" != "/" -a ! -d "$dir/meta-openbmc/.git" ]; do
dir=$(dirname $dir)
done
if [ -d "$dir/meta-aspeed/.git" ]; then
srcdir="$dir/meta-aspeed"
srcdir_git="${srcdir}/.git"
version=$(git --git-dir=${srcdir_git} --work-tree=${srcdir} describe --dirty 2> /dev/null)
else
version=""
fi
echo "Open BMC Release ${version} \\n \\l" > ${D}${sysconfdir}/issue
echo >> ${D}${sysconfdir}/issue
echo "Open BMC Release ${version} %h" > ${D}${sysconfdir}/issue.net
echo >> ${D}${sysconfdir}/issue.net
}
|