mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-25 03:50:24 +09:00
scripts/amlogic: adjust the name of the options
PD#172587: scripts/amlogic: adjust the name of the options Use the new options: -c specify defconfig with full name -f specify rootfs -b specify prefix or suffix of dts for the board -p specify prefix of dts for the chip -d make distclean -h print help summary and examples Change-Id: I709c468fd06a15d3a66cc2c9d316e7898aab4d99 Signed-off-by: Bo Yang <bo.yang@amlogic.com>
This commit is contained in:
47
scripts/amlogic/mkimage_32.sh
Normal file → Executable file
47
scripts/amlogic/mkimage_32.sh
Normal file → Executable file
@@ -168,19 +168,19 @@ usage_example()
|
||||
echo -e "\033[32;1m $PRGNAME\033[0m\n"
|
||||
|
||||
echo -e " # build kernel using defconfig <meson64_defconfig>\c"
|
||||
echo -e " specified by the option -k"
|
||||
echo -e "\033[32;1m $PRGNAME -k meson64_defconfig\033[0m\n"
|
||||
echo -e " specified by the option -c"
|
||||
echo -e "\033[32;1m $PRGNAME -c meson64_defconfig\033[0m\n"
|
||||
|
||||
echo -e " # build all dtb for the board with prefix or suffix\c"
|
||||
echo -e " <p320> specified by the option -d"
|
||||
echo -e "\033[32;1m $PRGNAME -d p320\033[0m\n"
|
||||
echo -e " # build all dtb for the board with prefix or suffix <p320>\c"
|
||||
echo -e " specified by the option -b"
|
||||
echo -e "\033[32;1m $PRGNAME -b p320\033[0m\n"
|
||||
|
||||
echo -e " # build all dtb for the chip with prefix <txl> specified\c"
|
||||
echo -e " by the option -p"
|
||||
echo -e " # build all dtb for the chip with prefix <txl>\c"
|
||||
echo -e " specified by the option -p"
|
||||
echo -e "\033[32;1m $PRGNAME -p txl\033[0m\n"
|
||||
|
||||
echo -e " # make distclean and build kernel and dtb"
|
||||
echo -e "\033[32;1m $PRGNAME -k meson64_defconfig -d p320 -c\033[0m\n"
|
||||
echo -e "\033[32;1m $PRGNAME -c meson64_defconfig -b p320 -d\033[0m\n"
|
||||
}
|
||||
|
||||
|
||||
@@ -189,19 +189,19 @@ usage_example()
|
||||
#
|
||||
usage()
|
||||
{
|
||||
echo -e "Usage: $PRGNAME [-k def] [-d dts | -p chip] [-c] [-h]\n"
|
||||
echo -e " -k specify defconfig with full name"
|
||||
echo -e "Usage: $PRGNAME [-c defconfig] {-f rootfs} [-b dts | -p chip] [-d] [-h]\n"
|
||||
echo -e " -c specify defconfig with full name"
|
||||
echo -e " -f specify rootfs"
|
||||
echo -e " -d specify dts or the prefix or suffix"
|
||||
echo -e " -p specify the prefix of dts for the chip"
|
||||
echo -e " -c make distclean"
|
||||
echo -e " -b specify prefix or suffix of dts for the board"
|
||||
echo -e " -p specify prefix of dts for the chip"
|
||||
echo -e " -d make distclean"
|
||||
echo -e " -h print help summary and examples"
|
||||
}
|
||||
|
||||
|
||||
while getopts :k:f:d:p:ch opt; do
|
||||
while getopts :c:f:b:p:dh opt; do
|
||||
case $opt in
|
||||
k)
|
||||
c)
|
||||
BUILDKERNEL=true
|
||||
find_defconfig ${OPTARG}
|
||||
;;
|
||||
@@ -210,7 +210,7 @@ while getopts :k:f:d:p:ch opt; do
|
||||
BUILDROOTFS=true
|
||||
find_rootfs ${OPTARG}
|
||||
;;
|
||||
d)
|
||||
b)
|
||||
BUILDDTB=true
|
||||
find_devicetree _${OPTARG}
|
||||
;;
|
||||
@@ -218,7 +218,7 @@ while getopts :k:f:d:p:ch opt; do
|
||||
BUILDDTB=true
|
||||
find_devicetree ${OPTARG}_
|
||||
;;
|
||||
c)
|
||||
d)
|
||||
DISTCLEAN=true
|
||||
;;
|
||||
h)
|
||||
@@ -234,13 +234,18 @@ while getopts :k:f:d:p:ch opt; do
|
||||
;;
|
||||
:)
|
||||
case $OPTARG in
|
||||
k)
|
||||
echo "missing argument to -k"
|
||||
c)
|
||||
echo "missing argument to -c"
|
||||
usage
|
||||
exit 1
|
||||
;;
|
||||
d)
|
||||
echo "missing argument to -d"
|
||||
f)
|
||||
echo "missing argument to -f"
|
||||
usage
|
||||
exit 1
|
||||
;;
|
||||
b)
|
||||
echo "missing argument to -b"
|
||||
usage
|
||||
exit 1
|
||||
;;
|
||||
|
||||
47
scripts/amlogic/mkimage_64.sh
Normal file → Executable file
47
scripts/amlogic/mkimage_64.sh
Normal file → Executable file
@@ -171,19 +171,19 @@ usage_example()
|
||||
echo -e "\033[32;1m $PRGNAME\033[0m\n"
|
||||
|
||||
echo -e " # build kernel using defconfig <meson64_defconfig>\c"
|
||||
echo -e " specified by the option -k"
|
||||
echo -e "\033[32;1m $PRGNAME -k meson64_defconfig\033[0m\n"
|
||||
echo -e " specified by the option -c"
|
||||
echo -e "\033[32;1m $PRGNAME -c meson64_defconfig\033[0m\n"
|
||||
|
||||
echo -e " # build all dtb for the board with prefix or suffix\c"
|
||||
echo -e " <p320> specified by the option -d"
|
||||
echo -e "\033[32;1m $PRGNAME -d p320\033[0m\n"
|
||||
echo -e " # build all dtb for the board with prefix or suffix <p320>\c"
|
||||
echo -e " specified by the option -b"
|
||||
echo -e "\033[32;1m $PRGNAME -b p320\033[0m\n"
|
||||
|
||||
echo -e " # build all dtb for the chip with prefix <txl> specified\c"
|
||||
echo -e " by the option -p"
|
||||
echo -e " # build all dtb for the chip with prefix <txl>\c"
|
||||
echo -e " specified by the option -p"
|
||||
echo -e "\033[32;1m $PRGNAME -p txl\033[0m\n"
|
||||
|
||||
echo -e " # make distclean and build kernel and dtb"
|
||||
echo -e "\033[32;1m $PRGNAME -k meson64_defconfig -d p320 -c\033[0m\n"
|
||||
echo -e "\033[32;1m $PRGNAME -c meson64_defconfig -b p320 -d\033[0m\n"
|
||||
}
|
||||
|
||||
|
||||
@@ -192,19 +192,19 @@ usage_example()
|
||||
#
|
||||
usage()
|
||||
{
|
||||
echo -e "Usage: $PRGNAME [-k def] [-d dts | -p chip] [-c] [-h]\n"
|
||||
echo -e " -k specify defconfig with full name"
|
||||
echo -e "Usage: $PRGNAME [-c defconfig] {-f rootfs} [-b dts | -p chip] [-d] [-h]\n"
|
||||
echo -e " -c specify defconfig with full name"
|
||||
echo -e " -f specify rootfs"
|
||||
echo -e " -d specify dts or the prefix or suffix"
|
||||
echo -e " -p specify the prefix of dts for the chip"
|
||||
echo -e " -c make distclean"
|
||||
echo -e " -b specify prefix or suffix of dts for the board"
|
||||
echo -e " -p specify prefix of dts for the chip"
|
||||
echo -e " -d make distclean"
|
||||
echo -e " -h print help summary and examples"
|
||||
}
|
||||
|
||||
|
||||
while getopts :k:f:d:p:ch opt; do
|
||||
while getopts :c:f:b:p:dh opt; do
|
||||
case $opt in
|
||||
k)
|
||||
c)
|
||||
BUILDKERNEL=true
|
||||
find_defconfig ${OPTARG}
|
||||
;;
|
||||
@@ -213,7 +213,7 @@ while getopts :k:f:d:p:ch opt; do
|
||||
BUILDROOTFS=true
|
||||
find_rootfs ${OPTARG}
|
||||
;;
|
||||
d)
|
||||
b)
|
||||
BUILDDTB=true
|
||||
find_devicetree _${OPTARG}
|
||||
;;
|
||||
@@ -221,7 +221,7 @@ while getopts :k:f:d:p:ch opt; do
|
||||
BUILDDTB=true
|
||||
find_devicetree ${OPTARG}_
|
||||
;;
|
||||
c)
|
||||
d)
|
||||
DISTCLEAN=true
|
||||
;;
|
||||
h)
|
||||
@@ -237,13 +237,18 @@ while getopts :k:f:d:p:ch opt; do
|
||||
;;
|
||||
:)
|
||||
case $OPTARG in
|
||||
k)
|
||||
echo "missing argument to -k"
|
||||
c)
|
||||
echo "missing argument to -c"
|
||||
usage
|
||||
exit 1
|
||||
;;
|
||||
d)
|
||||
echo "missing argument to -d"
|
||||
f)
|
||||
echo "missing argument to -f"
|
||||
usage
|
||||
exit 1
|
||||
;;
|
||||
b)
|
||||
echo "missing argument to -b"
|
||||
usage
|
||||
exit 1
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user