OpenCores
URL https://opencores.org/ocsvn/c0or1k/c0or1k/trunk

Subversion Repositories c0or1k

[/] [c0or1k/] [trunk/] [clean.py] - Diff between revs 4 and 5

Show entire file | Details | Blame | View Log

Rev 4 Rev 5
Line 1... Line 1...
#! /usr/bin/env python2.6
#! /usr/bin/env python2.6
# -*- mode: python; coding: utf-8; -*-
# -*- mode: python; coding: utf-8; -*-
 
#
 
# Top-level clean script for Codezero
 
#
 
# Cleans the Codezero environment
 
#
import os, sys, shelve, shutil
import os, sys, shelve, shutil
 
 
build_dir = "./build"
 
# clean the kernel
# clean the kernel
print "\n### Cleaning the kernel..."
print "\n### Cleaning the kernel..."
os.system("scons -c")
os.system("scons -c")
 
 
# clean user libraries
# clean user libraries
print "\n### Cleaning user libraries..."
print "\n### Cleaning user libs"
os.system("scons -f SConstruct.userlibs -c")
os.system("scons -f SConstruct.userlibs -c")
 
 
# clean the loader (the packer around kernel.elf)
# clean the loader (the packer around kernel.elf)
print "\n### Cleaning the loader..."
print "\n### Cleaning loader..."
os.system("scons -f SConstruct.loader -c")
os.system("scons -f SConstruct.loader -c")
 
 
# remove build dir
# rem build dir
if os.path.exists(build_dir):
print "\n### Removing build dir..."
   print "\n### Removing build directory..."
if os.path.exists("build"):
   shutil.rmtree(build_dir)
    shutil.rmtree("build")
 
 
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.