Update create-distro-layer

Signed-off-by: Rishab Nayak <rishab@rishabnayak.com>
This commit is contained in:
Rishab Nayak
2024-11-20 17:28:59 -05:00
committed by Matt Madison
parent 7d00b58ae2
commit 3123703992

View File

@@ -69,6 +69,10 @@ if [ -d layers/meta-tegrademo ]; then
cat ${LAYER_DIR}/conf/distro/tegrademo.conf > ${LAYER_DIR}/conf/distro/${DISTRO_NAME}.conf
rm -rf ${LAYER_DIR}/conf/distro/tegrademo.conf
# Adjust the data in conf/distro/include
cat ${LAYER_DIR}/conf/distro/include/tegrademo.inc > ${LAYER_DIR}/conf/distro/include/${DISTRO_NAME}.inc
rm -rf ${LAYER_DIR}/conf/distro/include/tegrademo.inc
# Change Layer attributes from tegrademo
find ${LAYER_DIR} -type f -exec sed -i "s/tegrademo/${DISTRO_NAME}/" {} \;