I will try that.   Since I can't recreate the bad setup,  it will be hard to confirm the this fixes it.

On Apr 18, 2014 9:43 AM, "Sam Protsenko" <semen.protsenko@linaro.org> wrote:
Roy,

I figured that in addition to "clean" EDK2 has also "cleanall" rule
and it seems the last one works just fine. I built EDK2 and then tried
to clean it as follows:

<------------------- cut here ------------------->
arch=ARM
build=DEBUG
tc=ARMLINUXGCC
plat=ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-RTSM-A15.dsc

build -a $arch -b $build -t $tc -p $plat cleanall
make clean -C BaseTools
<------------------- cut here ------------------->

So you can see it's only 2 commands involved, firs for cleaning
platform files and second for cleaning BaseTools.
After that almost all built files were removed. In fact, I only have
next not removed files after "cleanall":

+├── Build
+│   └── ArmVExpress-RTSM-A15
 ├── Conf
+│   ├── BuildEnv.sh
+│   ├── build_rule.txt
+│   ├── target.txt
+│   └── tools_def.txt


Can you confirm if this method works for you?


On 11 April 2014 21:44, Roy Franz <roy.franz@linaro.org> wrote:
> On Fri, Apr 11, 2014 at 8:45 AM, Sam Protsenko <semen.protsenko@linaro.org>
> wrote:
>>
>> Hi guys,
>>
>> There was some complaints about shortcomings of EDK2 build system, like
>> "make clean" doesn't work correct, dependency checking is lame, etc. It
>> would be really great to collect here all inputs with explanations (or steps
>> how to reproduce). So if you happened to notice that something is wrong with
>> EDK2 build system -- please provide this information here. I also don't
>> really understand what is wrong with clean scripts and dependency checking
>> (just heard complaints without explanations), so if you know any details --
>> please provide it here as well.
>>
>
> Hi Sam,
>
>    I have been bitten by the 'clean' problems.  A build would not complete
> until I used a 'git clean' command to get rid of generated files - the UEFI
> build system clean did not adequately clean up.  I don't recall the
> specifics, but I will take notes the next time I hit this.
>
> Roy
>
>
>
>>
>> Once I have enough inputs I will solicit feedback from the community and
>> will try to upstream fixes.
>>
>> Thanks!
>>
>> _______________________________________________
>> Linaro-uefi mailing list
>> Linaro-uefi@lists.linaro.org
>> http://lists.linaro.org/mailman/listinfo/linaro-uefi
>>
>