Re: Raspberry pi 4 recipe and layer issues.


Ed Vidal
 

Hi 


The Makefile executes several lines, which set variables ARACHNE_VER, GIT_REV, and VER_HASH.   These are used in the rule which creates a file src/version_$(VER_HASH).cc.
The line below appears to be the one that causes the error.
VER_HASH = $(shell echo "$(ARACHNE_VER) $(GIT_REV)" | sum | cut -d ' ' -f -1)

src/version_$(VER_HASH).cc:
echo "const char *version_str = \"arachne-pnr $(ARACHNE_VER) (git sha1 $(GIT_REV), $(notdir $(CXX)) `$(CXX) --version | tr ' ()' '\n' | grep '^[0-9]' | head -n1` $(filter -f% -m% -O% -DNDEBUG,$(CXXFLAGS)))\";" > src/version_$(VER_HASH).cc

bin/arachne-pnr$(EXE): src/arachne-pnr.o src/netlist.o src/blif.o src/pack.o src/place.o src/util.o src/io.o src/route.o src/chipdb.o src/location.o src/configuration.o src/line_parser.o src/pcf.o src/global.o src/constant.o src/designstate.o src/version_$(VER_HASH).o
$(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)

These variables are based on git revision.   So I can not hard code them.
This is the error that I get.

/bin/sh: 1: sum: not found

I have tried adding busybox & coreutils to DEPENDS 
Thanks 
Best Regards,

Edward Vidal Jr. e-mail develone@... 915-595-1613

Join yocto@lists.yoctoproject.org to automatically receive all group messages.