Table of Contents
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # TO MATCH FILES RECURSIVELY | |
| ## recursive wildcard | |
| ## use it like `SRC := ${call rwildcard, ., *.c *.o *.s}` | |
| rwildcard := ${foreach d,${wildcard ${1:=/*}},${call rwildcard,$d,$2} ${filter ${subst *,%,$2},$d}} | |
| ## use find cmd | |
| ## NOTE: I prefer this one | |
| SRC := ${shell find . -type f -name *.c -or -name *.o} | |
| # How to prevent make echoing commands to the console |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "configurations": [ | |
| { | |
| "name": "Linux", | |
| "includePath": [ | |
| "${workspaceFolder}", | |
| "LINUX_PATH/include", | |
| "LINUX_PATH/include/uapi", | |
| "LINUX_PATH/include/generated", | |
| "LINUX_PATH/arch/x86/include", |
Remember to terminate the WSL distribution first
wsl --export Ubuntu-20.04 "D:\Hyper-V\wsl\Ubuntu_20_04\Ubuntu_20_04.tar"
wsl --unregister Ubuntu-20.04
wsl --import Ubuntu-20.04 "D:\Hyper-V\wsl\Ubuntu_20_04" "D:\Hyper-V\wsl\Ubuntu_20_04\Ubuntu_20_04.tar" --version 2NOTE: This guide is only for non-mirrored network. For mirrored network, see Microsoft Guide
With the default WSL2 distro setting, WSL2 will have a net interface
within private network (, and you can check it with ifconfig).
And the Windows Host also has a virtual net interface called vEthernet (WSL),
which allows WSL2 to comunicate with it and other networks (, see the routetrack
with tracepath or traceroute).