|
@@ -12,8 +12,8 @@ EOF
|
|
|
exit 1
|
|
|
}
|
|
|
|
|
|
-o='c:d:r:x:'
|
|
|
-O='console:,devicetree:,root:,extra-args:'
|
|
|
+o='c:d:l:r:x:'
|
|
|
+O='console:,devicetree:,label:,root:,extra-args:'
|
|
|
opts="$(getopt -n "${0##*/}" -o "${o}" -l "${O}" -- "${@}")"
|
|
|
eval set -- "${opts}"
|
|
|
while [ ${#} -gt 0 ]; do
|
|
@@ -24,6 +24,9 @@ while [ ${#} -gt 0 ]; do
|
|
|
(-d|--devicetree)
|
|
|
DEVICETREE="${2}"; shift 2
|
|
|
;;
|
|
|
+ (-l|--label)
|
|
|
+ LABEL="${2}"; shift 2
|
|
|
+ ;;
|
|
|
(-r|--root)
|
|
|
ROOT="${2}"; shift 2
|
|
|
;;
|
|
@@ -38,6 +41,7 @@ done
|
|
|
|
|
|
[ -n "${CONSOLE}" ] || die "Missing \`console' argument"
|
|
|
[ -n "${DEVICETREE}" ] || die "Missing \`devicetree' argument"
|
|
|
+[ -n "${LABEL}" ] || die "Missing \`label' argument"
|
|
|
[ -n "${ROOT}" ] || die "Missing \`root' argument"
|
|
|
append="console=${CONSOLE} root=${ROOT} rw rootfstype=ext4 rootwait"
|
|
|
if [ -n "${EXTRA_ARGS}" ]; then
|
|
@@ -46,7 +50,7 @@ fi
|
|
|
|
|
|
mkdir -p "${BINARIES_DIR}"
|
|
|
cat <<-__HEADER_EOF > "${BINARIES_DIR}/extlinux.conf"
|
|
|
- label am62x-sk-buildroot
|
|
|
+ label ${LABEL}
|
|
|
kernel /Image
|
|
|
fdtdir /
|
|
|
devicetree /${DEVICETREE}
|