make.sh: add subcomand "map" and ".config"
Example: ./make.sh evb-px30 map ---- edit System.map ./make.sh evb-px30 .config ---- edit .config Change-Id: Iba731a07a4da9cd56c2099237620358dc4967315 Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This commit is contained in:
parent
d8540eac21
commit
07de173ac2
18
make.sh
18
make.sh
|
|
@ -100,7 +100,7 @@ sub_commands()
|
|||
if [ "$SUBCMD" = 'clean' -o "$SUBCMD" = 'distclean' -o "$SUBCMD" = 'mrproper' ]; then
|
||||
make $SUBCMD O=${DSTDIR}/out
|
||||
exit 0
|
||||
elif [ ${elf} = 'elf' ]; then
|
||||
elif [ "$elf" = 'elf' ]; then
|
||||
if [ ! -f ${DSTDIR}/out/u-boot ]; then
|
||||
echo "Can't find elf file: ${DSTDIR}/out/u-boot"
|
||||
exit 1
|
||||
|
|
@ -113,6 +113,22 @@ sub_commands()
|
|||
${TOOLCHAIN_OBJDUMP} -${opt} ${DSTDIR}/out/u-boot | less
|
||||
exit 0
|
||||
fi
|
||||
elif [ "$SUBCMD" = 'map' ]; then
|
||||
if [ ! -f ${DSTDIR}/out/System.map ]; then
|
||||
echo "Can't find map file: ${DSTDIR}/out/System.map"
|
||||
exit 1
|
||||
else
|
||||
vim ${DSTDIR}/out/System.map
|
||||
exit 0
|
||||
fi
|
||||
elif [ "$SUBCMD" = '.config' ]; then
|
||||
if [ ! -f ${DSTDIR}/out/.config ]; then
|
||||
echo "Can't find .config file: ${DSTDIR}/out/.config"
|
||||
exit 1
|
||||
else
|
||||
vim ${DSTDIR}/out/.config
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue