Blocking access to external network while building yocto using BB_NO_NETWORK in local.conf

As we have seen in “Use local mirror to build yocto filesystem from internal server” if you have setup the yocto to download from local mirrors and now it seems everything is fine and you no longer need to download external source code, we can setup yocto to make sure it is really not reaching external network to download from instead, and verify that we have all source code necessary to compile yocto filesystem locally.

For this, we need to add following line into build/conf/local.conf

 $ vim  build/conf/local.conf 
BB_NO_NETWORK = "1"

This will block all network access and if we do fresh build, we will see if yocto attempted to download from internet and failed, if failed we can adjust failed recipes SRC_URI to download from local mirror.

Android Android Commands Android Java Applications Application Libraries Bash / Shell Scripts Bluetooth driver Build Frameworks Commands and Packages Core Kernel C Programs Development Environment Setup Documents / Books Errors & Failures File Systems Framebuffer / Display Driver git Go Language Programs Hardware Platforms Home JAVA Programs Kernel & Device Drivers Kernel Booting and Porting Linux, OS Concepts and Networking Linux Device Drivers Linux Host, Ubuntu, SysAdmin Linux Kernel Linux Networking Middleware Libraries, HAL NDK / Middleware / HAL Network Driver OS Concepts PHP Procfs Filesystem Programming Languages RaspberryPi Scripting and Automation Search Engine Optimisation ( SEO ) Socurce Code Management ( SCM ) System Administration, Security Testing and Debugging Uncategorized Userspace Utilities Web design and development Wordpress Yocto / Bitbake / Openembedded

Leave a Reply