From e2aa3e9ce260646191aa49293bbc99bda034cc38 Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Thu, 22 Jul 2010 17:57:09 +0200 Subject: [make_uboot_env] like make_barebox_env but for U-Boot V1 Signed-off-by: Michael Olbrich --- tests/make_uboot_env | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 tests/make_uboot_env (limited to 'tests') diff --git a/tests/make_uboot_env b/tests/make_uboot_env new file mode 100755 index 000000000..15ff57f48 --- /dev/null +++ b/tests/make_uboot_env @@ -0,0 +1,14 @@ +#!/bin/bash + +UBOOT_ENV="${1}" + +ptxd_get_path "${PTXDIST_PLATFORMCONFIGDIR}/u-boot-env/config{${PTXDIST_PLATFORMSUFFIX},}{.in,}" || +ptxd_bailout "could not find U-Boot environment." + +CONFFILE_IN="${ptxd_reply}" +CONFFILE="${CONFFILE_IN%%.in}" + +ptxd_replace_magic "${CONFFILE_IN}" > "${CONFFILE}" + +[ -n "${UBOOT_ENV}" ] && cp "${CONFFILE}" "${UBOOT_ENV}" + -- cgit v1.2.3