mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
makefiles/bindist: copy object files and use .bin to compare
This commit is contained in:
parent
81cb769cad
commit
29b81e4b40
@ -1,7 +1,7 @@
|
|||||||
# Avoid including APPLICATION_MODULE twice to prevent multiple definition errors
|
# Avoid including APPLICATION_MODULE twice to prevent multiple definition errors
|
||||||
USEMODULE += $(filter-out $(APPLICATION_MODULE),$(BIN_USEMODULE))
|
USEMODULE += $(filter-out $(APPLICATION_MODULE),$(BIN_USEMODULE))
|
||||||
|
|
||||||
DIST_FILES += $(BIN_USEMODULE:%=bin/$(BOARD)/%.a)
|
DIST_FILES += $(BIN_USEMODULE:%=bin/$(BOARD)/%/*.o)
|
||||||
|
|
||||||
# if the file Makefile.distcheck exists, we're executing from within a folder
|
# if the file Makefile.distcheck exists, we're executing from within a folder
|
||||||
# generated by "make bindist".
|
# generated by "make bindist".
|
||||||
@ -17,7 +17,7 @@ bindist: all
|
|||||||
echo Copying $$i to bindist. ; \
|
echo Copying $$i to bindist. ; \
|
||||||
cp -a --parents $$i bindist ; \
|
cp -a --parents $$i bindist ; \
|
||||||
done
|
done
|
||||||
@cp -a bin/$(BOARD)/$(APPLICATION).elf bindist
|
@cp -a bin/$(BOARD)/$(APPLICATION).bin bindist
|
||||||
|
|
||||||
@echo "BINDIST_RIOT_VERSION=$(RIOT_VERSION)" > bindist/Makefile.distcheck
|
@echo "BINDIST_RIOT_VERSION=$(RIOT_VERSION)" > bindist/Makefile.distcheck
|
||||||
@echo "BINDIST_GIT_HEAD=$$(git -C $(RIOTBASE) describe)" >> bindist/Makefile.distcheck
|
@echo "BINDIST_GIT_HEAD=$$(git -C $(RIOTBASE) describe)" >> bindist/Makefile.distcheck
|
||||||
@ -29,7 +29,7 @@ prepare_check_bindist:
|
|||||||
echo "Warning! git describe doesn't match!"
|
echo "Warning! git describe doesn't match!"
|
||||||
|
|
||||||
check_bindist: prepare_check_bindist all
|
check_bindist: prepare_check_bindist all
|
||||||
@test $(shell md5sum bin/$(BOARD)/$(APPLICATION).elf | cut -f1 -d\ ) \
|
@test $(shell md5sum bin/$(BOARD)/$(APPLICATION).bin | cut -f1 -d\ ) \
|
||||||
= $(shell md5sum $(APPLICATION).elf | cut -f1 -d\ ) \
|
= $(shell md5sum $(APPLICATION).bin | cut -f1 -d\ ) \
|
||||||
&& echo "bin/$(BOARD)/$(APPLICATION).elf matches $(APPLICATION).elf." \
|
&& echo "bin/$(BOARD)/$(APPLICATION).bin matches $(APPLICATION).bin." \
|
||||||
|| echo "bin/$(BOARD)/$(APPLICATION).elf and $(APPLICATION).elf don't match!"
|
|| echo "bin/$(BOARD)/$(APPLICATION).bin and $(APPLICATION).bin don't match!"
|
||||||
|
Loading…
Reference in New Issue
Block a user