Skip to content

Commit

Permalink
Fix for SWDEV-202524 : Linking files with same name.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dineshkumar Bhaskaran authored and scchan committed Oct 31, 2019
1 parent 53a616a commit 6f655f7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/clamp-link.in
Original file line number Diff line number Diff line change
Expand Up @@ -538,8 +538,9 @@ do

FILE=`basename "$OBJ"` # remove path
FILENAME="${FILE%.*}"
KERNEL_FILE="$TEMP_DIR/$FILENAME.kernel.bc"
HOST_FILE="$TEMP_DIR/$FILENAME.host.o"
HASH=($(md5sum $OBJ))
KERNEL_FILE="$TEMP_DIR/$FILENAME.$HASH.kernel.bc"
HOST_FILE="$TEMP_DIR/$FILENAME.$HASH.host.o"

# extract kernel section
objcopy -O binary -j "$KERNEL_IR_SECTION" "$OBJ" "$KERNEL_FILE"
Expand Down

0 comments on commit 6f655f7

Please sign in to comment.