The DDKBUILDENV environment variable specifies the type of build environment — checked or free.
This is always defined in the DDK build environments. In the free build environment it is defined as fre. In the checked build environment it is defined as chk.
You can use $(DDKBUILDENV) in a sources file to test what environment you are building on.
You should not change this environment variable. Changing this variable will not convert a checked build environment into a free build environment or vice-versa.