Open schaecsn opened 3 years ago
Perhaps bl_iot_sdk/docs/html/Quickstart_Guide/Linux/ needs a sibling for NetBSD/ that explains that NetBSD is a lesser supported build environment (sorry/not sorry) that largely refers a developer to the Linux doc but that provides a tiny wrapper script that sets these flags relative to the top of bl_iot_sdk/, makes the symlinks, runs gmake instead of make (?) and does whatever else is needed?
The Pine64 Wiki for BL602 seems missing (should that be addressed?) so maybe that's the place for this, but I think a tiny wrapper in code instead of a textual description might be more helpful.
(Not a reviewer/approver - I'm just a random developer providing drive-by commentary. :-)
@robertlipe good idea! :) also AFAIK there is entry on Wiki for Nutcracker on our wiki.
I don't think we should spend time integrating NetBSD into the supported platforms. I just want to report that it works with these caveats:
a) use gmake instead of make (gnu make instead of bsd make)
b) make the build environment believe we are on Linux
c) Use/install Linux emulation provided by package emulators/suse131_base (there does not seem to be an official crosscompiler from NetBSD/XXX to Linux/riscv)
For reasons unknown, I need to help the toolchain to find its libraries
d) project.mk, for god's sake, these two python commands don't find the files requirements.txt and flash_build.py in the cd'ed directory. As a work-around, I call them manually from the commnd-line.
@cd $(BL60X_SDK_PATH)/image_conf;python3 -m pip install -r requirements.txt; python3 flash_build.py $(PROJECT_NAME) $(CONFIG_CHIP_NAME)
In the end, you call
and then manually