firmware: Firmware doesn't compile on NixOS
Attempting a build for hi3518ev300_ultimate via the documented methods, initially got this error:
make[3]: Entering directory '/tmp/firmware/output/build/hisilicon-opensdk/libraries/sensor/hi3516ev200/sony_imx335_2L'
Makefile:6: ../../../../../../Makefile.param: No such file or directory
make[3]: *** No rule to make target '../../../../../../Makefile.param'. Stop.
I removed this from the Makefile in the sony_imx335_2L directory and tried again:
ifeq ($(PARAM_FILE), )
PARAM_FILE:=../../../../../../Makefile.param
include $(PARAM_FILE)
endif
ifeq ($(MPP_BUILD), y)
ifeq ($(CBB_PARAM_FILE), )
CBB_PARAM_FILE:=../../../../../Makefile.param
include $(CBB_PARAM_FILE)
endif
endif
That resulted in errors for missing includes for sony_imx335_2L. I checked for the existence of sony_imx335_2L’s includes via this:
for i in $(grep include /tmp/firmware/output/build/hisilicon-opensdk/libraries/sensor/hi3516ev200/sony_imx335_2L/* | grep "[\#]" | cut -f2 -d'#' | grep "[\"]" | cut -f2 -d'"');
do
if [ -z "$(find . -type f | grep ${i})" ];
then
echo $i;
fi;
done
Which returned these missing includes:
hi_comm_sns.h
hi_comm_video.h
hi_sns_ctrl.h
mpi_ae.h
mpi_awb.h
hi_comm_video.h
hi_sns_ctrl.h
gpioi2c_ex.h
hi_i2c.h
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 16 (7 by maintainers)
I can confirm
sony_imx335_2Lis back. This build is now working on NixOS (using the shell.nix above). Thank you everyone!Just checked run
./building.sh gk7205v300_liteagainst master, everything is ok on my machine