make.sh
688 Bytes
#!/bin/sh
OUTPUT_DIR="../output-u-boot_2015_04"
if [ -z "${CP_DIR}" ]
then
CP_DIR="../../release /tftpboot/prime-oven /nfs/prime-oven"
fi
defconfig="imx6s_prime_oven_defconfig"
image_filename="u-boot.imx"
target_filename="u-boot.imx"
if [ ! -f ${OUTPUT_DIR}/.config ]; then
CROSS_COMPILE=arm-none-eabi- make O=${OUTPUT_DIR} $defconfig
fi
CROSS_COMPILE=arm-none-eabi- make O=${OUTPUT_DIR} $@
if [ -f $OUTPUT_DIR/$image_filename ]; then
for DEST_DIR in ${CP_DIR}
do
echo "copy from ${OUTPUT_DIR}/${image_filename} to ${DEST_DIR}/$target_filename"
mkdir -p ${DEST_DIR}/
cp ${OUTPUT_DIR}/${image_filename} ${DEST_DIR}/${target_filename}
done
fi