Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/common.sh b/common.sh
- index 021a98c..3a6b068 100644
- --- a/common.sh
- +++ b/common.sh
- @@ -89,7 +89,7 @@ else
- fi
- # create .deb package
- #
- -CHOOSEN_UBOOT="linux-u-boot-$VER-"$BOARD"_"$REVISION"_armhf"
- +CHOOSEN_UBOOT="linux-u-boot-"$BOARD"_"$REVISION"_${TX}_${RX}_armhf"
- UBOOT_PCK="linux-u-boot-$VER-"$BOARD
- mkdir -p $DEST/output/u-boot/$CHOOSEN_UBOOT/usr/lib/$CHOOSEN_UBOOT
- mkdir -p $DEST/output/u-boot/$CHOOSEN_UBOOT/DEBIAN
- diff --git a/main.sh b/main.sh
- index 0cc1494..d963037 100644
- --- a/main.sh
- +++ b/main.sh
- @@ -152,8 +152,8 @@ if [ "$FORCE" = "yes" ]; then
- FORCE=""
- fi
- -fetch_from_github "$BOOTLOADER" "$BOOTSOURCE"
- -fetch_from_github "$LINUXKERNEL" "$LINUXSOURCE"
- +#fetch_from_github "$BOOTLOADER" "$BOOTSOURCE"
- +#fetch_from_github "$LINUXKERNEL" "$LINUXSOURCE"
- if [[ -n "$DOCS" ]]; then fetch_from_github "$DOCS" "$DOCSDIR"; fi
- if [[ -n "$MISC1" ]]; then fetch_from_github "$MISC1" "$MISC1_DIR"; fi
- if [[ -n "$MISC2" ]]; then fetch_from_github "$MISC2" "$MISC2_DIR"; fi
- @@ -170,6 +170,52 @@ patching_sources
- # What are we building
- grab_kernel_version
- +# check whether we should just build a bunch of u-boot versions to
- +# brute-force all available GMAC TX/RX delay variations.
- +if [ "X${GMAC_DELAY_TEST}" == "Xyes" ]; then
- + for TX in 0 1 2 3 4 5 6 7 ; do
- + for RX in 0 1 2 3 4 5 6 7 ; do
- + CHOOSEN_UBOOT="linux-u-boot-${VER}-${BOARD}_${REVISION}_${TX}_${RX}_armhf"
- + UBOOT_PCK="linux-u-boot-$VER-"$BOARD
- + # search defconfig file for $BOARD
- + Defconfig="$(grep -i -- "-${BOARD}.dtb" ${DEST}/u-boot/configs/*_defconfig | cut -d: -f1)"
- + if [ ! -f "${Defconfig}" ]; then
- + case ${BOARD} in
- + aw-som-a20)
- + Defconfig="${DEST}/u-boot/configs/Awsom_defconfig"
- + ;;
- + cubieboard2)
- + Defconfig="${DEST}/u-boot/configs/Cubieboard2_defconfig"
- + ;;
- + lime)
- + Defconfig="${DEST}/u-boot/configs/A20-OLinuXino-Lime_defconfig"
- + ;;
- + micro)
- + Defconfig="${DEST}/u-boot/configs/A20-OLinuXino_MICRO_defconfig"
- + ;;
- + bananapipro)
- + Defconfig="${DEST}/u-boot/configs/Bananapro_defconfig"
- + ;;
- + udoo*)
- + Defconfig="${DEST}/u-boot/configs/udoo_quad_defconfig"
- + ;;
- + esac
- + fi
- +
- + # patch defconfig with appropriate tx/rx values
- + MyTmpFile="$(mktemp /tmp/gmac_test.XXXXXX || exit 1)"
- + trap "cd /tmp; rm -f \"${MyTmpFile}\"; exit 0" 0 1 2 3 15
- + grep -v CONFIG_GMAC_TX_DELAY "${Defconfig}" | grep -v CONFIG_GMAC_RX_DELAY >"${MyTmpFile}"
- + cat "${MyTmpFile}" >"${Defconfig}"
- + echo -e "CONFIG_GMAC_TX_DELAY=${TX}\nCONFIG_GMAC_RX_DELAY=${RX}" >>"${Defconfig}"
- + cat "${Defconfig}"
- +
- + compile_uboot
- + done
- + done
- + exit 0
- +fi
- +
- #--------------------------------------------------------------------------------------------------------------------------------
- # Compile source or choose already packed kernel
- #--------------------------------------------------------------------------------------------------------------------------------
- @@ -256,4 +302,4 @@ closing_image
- end=`date +%s`
- runtime=$(((end-start)/60))
- -echo -e "[\e[0;32m ok \x1B[0m] Runtime $runtime min"
- \ No newline at end of file
- +echo -e "[\e[0;32m ok \x1B[0m] Runtime $runtime min"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement