同步操作将从 韦东山/linux-imx 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/bin/bash# SPDX-License-Identifier: GPL-2.0-only# objdiff - a small script for validating that a commit or series of commits# didn't change object code.## Copyright 2014, Jason Cooper <jason@lakedaemon.net>## usage example:## $ git checkout COMMIT_A# $ <your fancy build command here># $ ./scripts/objdiff record path/to/*.o## $ git checkout COMMIT_B# $ <your fancy build command here># $ ./scripts/objdiff record path/to/*.o## $ ./scripts/objdiff diff COMMIT_A COMMIT_B# $# And to clean up (everything is in .tmp_objdiff/*)# $ ./scripts/objdiff clean all## Note: 'make mrproper' will also remove .tmp_objdiffSRCTREE=$(cd $(git rev-parse --show-toplevel 2>/dev/null); pwd)if [ -z "$SRCTREE" ]; thenecho >&2 "ERROR: Not a git repository."exit 1fiTMPD=$SRCTREE/.tmp_objdiffusage() {echo >&2 "Usage: 0ドル <command> <args>"echo >&2 " record <list of object files or directories>"echo >&2 " diff <commitA> <commitB>"echo >&2 " clean all | <commit>"exit 1}get_output_dir() {dir=${1%/*}if [ "$dir" = "1ドル" ]; thendir=.fidir=$(cd $dir; pwd)echo $TMPD/$CMT${dir#$SRCTREE}}do_objdump() {dir=$(get_output_dir 1ドル)base=${1##*/}stripped=$dir/${base%.o}.strippeddis=$dir/${base%.o}.dis[ ! -d "$dir" ] && mkdir -p $dir# remove addresses for a cleaner diff# http://dummdida.tumblr.com/post/60924060451/binary-diff-between-libc-from-scientificlinux-and$STRIP -g 1ドル -R __bug_table -R .note -R .comment -o $stripped$OBJDUMP -D $stripped | sed -e "s/^[[:space:]]\+[0-9a-f]\+//" -e "s:^$stripped:1ドル:" > $dis}dorecord() {[ $# -eq 0 ] && usageFILES="$*"CMT="`git rev-parse --short HEAD`"STRIP="${CROSS_COMPILE}strip"OBJDUMP="${CROSS_COMPILE}objdump"for d in $FILES; doif [ -d "$d" ]; thenfor f in $(find $d -name '*.o')dodo_objdump $fdoneelsedo_objdump $dfidone}dodiff() {[ $# -ne 2 ] && [ $# -ne 0 ] && usageif [ $# -eq 0 ]; thenSRC="`git rev-parse --short HEAD^`"DST="`git rev-parse --short HEAD`"elseSRC="`git rev-parse --short 1ドル`"DST="`git rev-parse --short 2ドル`"fiDIFF="`which colordiff`"if [ ${#DIFF} -eq 0 ] || [ ! -x "$DIFF" ]; thenDIFF="`which diff`"fiSRCD="$TMPD/$SRC"DSTD="$TMPD/$DST"if [ ! -d "$SRCD" ]; thenecho >&2 "ERROR: $SRCD doesn't exist"exit 1fiif [ ! -d "$DSTD" ]; thenecho >&2 "ERROR: $DSTD doesn't exist"exit 1fi$DIFF -Nurd $SRCD $DSTD}doclean() {[ $# -eq 0 ] && usage[ $# -gt 1 ] && usageif [ "x1ドル" = "xall" ]; thenrm -rf $TMPD/*elseCMT="`git rev-parse --short 1ドル`"if [ -d "$TMPD/$CMT" ]; thenrm -rf $TMPD/$CMTelseecho >&2 "$CMT not found"fifi}[ $# -eq 0 ] && usagecase "1ドル" inrecord)shiftdorecord $*;;diff)shiftdodiff $*;;clean)shiftdoclean $*;;*)echo >&2 "Unrecognized command '1ドル'"exit 1;;esac
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。