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 Application Stack / User Interface Bash / Shell Scripts Commands and Packages Compilation Content Management System - CMS Core Kernel C Programs Development & Build Development Environment Setup Errors & Failures Flutter git Go Language Programs Hardware Platforms HTML JAVA Programs Kernel & Device Drivers Linux, OS Concepts and Networking Linux Device Drivers Linux Host, Ubuntu, SysAdmin Linux Kernel Linux Networking Middleware Libraries, HAL Monetization / Google AdSense NDK / Middleware / HAL OS Concepts PHP Programming Languages RaspberryPi Scripting and Automation Search Engine Optimisation ( SEO ) Social Media Socurce Code Management ( SCM ) System Administration, Security Testing and Debugging Uncategorized User Interface Userspace Utilities Web design and development Wordpress Yocto / Bitbake / Openembedded

Leave a Reply / Ask Question