Lines Matching +full:cortex +full:- +full:m

3 # SPDX-License-Identifier: GPL-2.0-only
6 # Execute script and compare generated list.M files.
14 # sstate-diff/1349348392/fake-cortexa8/list.M \
15 # sstate-diff/1349348392/fake-cortexa9/list.M \
16 # | wc -l
20 # $ ls sstate-diff/1349348392/*/armv7a-vfp-neon*/linux-libc-headers/*do_configure*sigdata*
21 # sstate-diff/1349348392/fake-cortexa8/armv7a-vfp-neon-oe-linux-gnueabi/linux-libc-headers/3.4.3-
22 # sstate-diff/1349348392/fake-cortexa9/armv7a-vfp-neon-oe-linux-gnueabi/linux-libc-headers/3.4.3-
23 # $ bitbake-diffsigs stamps.1349348392/*/armv7a-vfp-neon*/linux-libc-headers/*do_configure*sigdata*
25-march=armv7-a -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a8 to -march=arm…
31 default_machines="qemuarm qemux86 qemux86-64"
32 default_targets="core-image-base"
41 -h, --help
44 --tmpdir=<tmpdir>
46 Something like /OE/oe-core/tmp-eglibc (no / at the end).
48 --machines=<machines>
50 Default value is "qemuarm qemux86 qemux86-64".
52 --targets=<targets>
54 Default value is "core-image-base".
56 --analyze
58 * First 2 MACHINEs in --machines parameter have the same TUNE_PKGARCH
59 …* Third optional MACHINE has different TUNE_PKGARCH - only native and allarch recipes are compared…
70 while [ -n "$1" ]; do
72 --tmpdir=*)
73 tmpdir=`echo $1 | sed -e 's#^--tmpdir=##' | xargs readlink -e`
74 [ -d "$tmpdir" ] || echo_error "Invalid argument to --tmpdir"
77 --machines=*)
78 machines=`echo $1 | sed -e 's#^--machines="*\([^"]*\)"*#\1#'`
81 --targets=*)
82 targets=`echo $1 | sed -e 's#^--targets="*\([^"]*\)"*#\1#'`
85 --analyze)
89 --help|-h)
95 echo_error "Try '$0 -h' for more information."
102 [ -n "$tmpdir" ] || tmpdir=$TMPDIR
103 [ -n "$tmpdir" ] || echo_error "No tmpdir found!"
104 [ -d "$tmpdir" ] || echo_error "Invalid tmpdir \"$tmpdir\""
105 [ -n "$machines" ] || machines=$MACHINES
106 [ -n "$machines" ] || machines=$default_machines
107 [ -n "$targets" ] || targets=$TARGETS
108 [ -n "$targets" ] || targets=$default_targets
110 OUTPUT=${tmpdir}/sstate-diff/`date "+%s"`
111 declare -i RESULT=0
113 for M in ${machines}; do
114 [ -d ${tmpdir}/stamps/ ] && find ${tmpdir}/stamps/ -name \*sigdata\* | xargs rm -f
115 mkdir -p ${OUTPUT}/${M}
116 export MACHINE=${M}
117 bitbake -S none ${targets} 2>&1 | tee -a ${OUTPUT}/${M}/log;
120 cp -ra ${tmpdir}/stamps/* ${OUTPUT}/${M}
121 find ${OUTPUT}/${M} -name \*sigdata\* | sed "s#${OUTPUT}/${M}/##g" | sort > ${OUTPUT}/${M}/list
122 M_UNDERSCORE=`echo ${M} | sed 's/-/_/g'`
123 sed "s/^${M_UNDERSCORE}-/MACHINE/g" ${OUTPUT}/${M}/list | sort > ${OUTPUT}/${M}/list.M
124 find ${tmpdir}/stamps/ -name \*sigdata\* | xargs rm -f
126 printf "ERROR: no sigdata files were generated for MACHINE $M in ${tmpdir}/stamps\n";
137 [ -n "${PATTERN}" ] || PRE_PATTERN="-v"
138 [ -n "${PATTERN}" ] || PATTERN="MACHINE"
140 …ignatures for task ${TASK} between ${MACHINE1} and ${MACHINE2} ===\n" | tee -a ${OUTPUT}/signature…
141 …diff ${OUTPUT}/${MACHINE1}/list.M ${OUTPUT}/${MACHINE2}/list.M | grep ${PRE_PATTERN} "${PATTERN}" …
142 …t ${OUTPUT}/signatures.${MACHINE2}.${TASK} | sed 's#[^/]*/\([^/]*\)/.*#\1#g' | sort -u | xargs`; do
143 …[ -e ${OUTPUT}/${MACHINE1}/*/$i/*${TASK}* ] || echo "INFO: ${i} task ${TASK} doesn't exist in ${MA…
144 [ -e ${OUTPUT}/${MACHINE1}/*/$i/*${TASK}* ] || continue
145 …[ -e ${OUTPUT}/${MACHINE2}/*/$i/*${TASK}* ] || echo "INFO: ${i} task ${TASK} doesn't exist in ${MA…
146 [ -e ${OUTPUT}/${MACHINE2}/*/$i/*${TASK}* ] || continue
148 bitbake-diffsigs ${OUTPUT}/${MACHINE1}/*/$i/*${TASK}* ${OUTPUT}/${MACHINE2}/*/$i/*${TASK}*;
149 echo "$i" >> ${OUTPUT}/failed-recipes.log
151 done | tee -a ${OUTPUT}/signatures.${MACHINE2}.${TASK}.log
153 ERRORS=`grep "^ERROR.*" ${OUTPUT}/signatures.${MACHINE2}.${TASK}.log | wc -l`
162 [ "$#" -ge 2 ] && compareSignatures $1 $2
163 [ "$#" -ge 3 ] && compareSignatures $1 $3 "\(^< all\)\|\(^< x86_64-linux\)\|\(^< i586-linux\)"
170 if [ "${RESULT}" != "0" -a -f ${OUTPUT}/failed-recipes.log ] ; then
171 …cat ${OUTPUT}/failed-recipes.log | sort -u >${OUTPUT}/failed-recipes.log.u && mv ${OUTPUT}/failed-
172 …echo "ERROR: ${RESULT} issues were found in these recipes: `cat ${OUTPUT}/failed-recipes.log | xar…