From: Hugo Villeneuve Date: Mon, 16 Jan 2023 21:58:41 +0000 (-0500) Subject: Add locales configuration X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=e3e606d9e41beafb65e5c79f852b7f91975de2ab;p=yocto%2Fmeta-hvmpd.git Add locales configuration --- diff --git a/recipes-core/base-files/base-files/locale.conf b/recipes-core/base-files/base-files/locale.conf new file mode 100644 index 0000000..b41408f --- /dev/null +++ b/recipes-core/base-files/base-files/locale.conf @@ -0,0 +1 @@ +LANG=en_CA.utf8 diff --git a/recipes-core/base-files/base-files/locale.sh b/recipes-core/base-files/base-files/locale.sh new file mode 100644 index 0000000..786a86c --- /dev/null +++ b/recipes-core/base-files/base-files/locale.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +# To have the date/time displayed in 24h format: +export LC_TIME=C diff --git a/recipes-core/base-files/base-files_%.bbappend b/recipes-core/base-files/base-files_%.bbappend index be6fd99..84276fe 100644 --- a/recipes-core/base-files/base-files_%.bbappend +++ b/recipes-core/base-files/base-files_%.bbappend @@ -1,6 +1,20 @@ +FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" + +SRC_URI:append = " \ + file://locale.conf \ + file://locale.sh \ +" + do_install:append () { echo "hvmpd" > ${D}${sysconfdir}/hostname # Maybe make this machine-specific in the future... echo "${MACHINE} revA" > ${D}${sysconfdir}/hwrevision + + # /etc/locale.conf is systemd-specific. + install -d ${D}${sysconfdir} + install -m 0644 ${WORKDIR}/locale.conf ${D}${sysconfdir} + + install -d ${D}${sysconfdir}/profile.d + install -m 0644 locale.sh ${D}${sysconfdir}/profile.d/ }