#!/bin/bash

## make clean (remove) kernel drivers and user mode drivers for new kernel.
#(cd WiFi && make clean)
(cd TestDrv && ./clean.sh)
(cd RaspUsbRec && make clean && make -f Makefile_PC clean)
(cd Fpga && make clean)

## remove buildroot directory and symbolic link file.
## !!CAUTION!!
##   Normally, all changes are stored in the configuration file and patch file.
##   However, if you do development stage or customization,
##   it will have changes not included in based the configuration file and patch files.
##   In other words, this work is very dangerous (should be careful) work.
## Therefore, it will not be executed automatically to avoid serious damage caused by
## human error operation.
#(rm buildroot && rm -rf buildroot-*/)
echo
echo "Please confirm configuration files and patch files first."
echo "If you have already completed migration to the configuration files"
echo "and patch files, remove buildroot directories and symbolic file."

