File tree 2 files changed +23
-0
lines changed
2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -158,6 +158,7 @@ define OPENPOWER_PNOR_INSTALL_IMAGES_CMDS
158
158
-openpower_version_filename $(OPENPOWER_PNOR_SCRATCH_DIR ) /openpower_pnor_version.bin
159
159
160
160
$(INSTALL ) $(STAGING_DIR ) /pnor/$(BR2_OPENPOWER_PNOR_FILENAME ) $(BINARIES_DIR )
161
+ $(TARGET_MAKE_ENV ) ../openpower/scripts/pnordiff.sh $(STAGING_DIR ) /pnor/$(BR2_OPENPOWER_PNOR_FILENAME ) $(STAGING_DIR ) /pnor/ffspart.pnor
161
162
162
163
# if this config has an UPDATE_FILENAME defined, create a 32M (1/2 size)
163
164
# image that only updates the non-golden side
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ T=$( mktemp -d)
4
+ A=$1
5
+ B=$2
6
+ R=0
7
+
8
+ pflash -i -F $A | grep -v ' ^Name' > $T /A.toc
9
+ pflash -i -F $B | grep -v ' ^Name' > $T /B.toc
10
+ diff -u $T /A.toc $T /B.toc
11
+ if [ $? != 0 ]; then R=1; fi
12
+
13
+ for p in $( pflash -i -F $A | awk ' /^ID\=[0-9]+\w+(.*)/ { print $2};' ) ; do
14
+ pflash -F $A -P $p -r $T /$p .A > /dev/null
15
+ pflash -F $B -P $p -r $T /$p .B > /dev/null
16
+ diff -u $T /$p .A $T /$p .B
17
+ if [ $? != 0 ]; then R=1; fi
18
+ done
19
+
20
+ if [ $R == 0 ]; then rm -rf $T ; fi
21
+
22
+ exit $R
You can’t perform that action at this time.
0 commit comments