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

Subversion Repositories c0or1k

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 3 to Rev 4
    Reverse comparison

Rev 3 → Rev 4

/c0or1k/trunk/clean.py
0,0 → 1,22
#! /usr/bin/env python2.6
# -*- mode: python; coding: utf-8; -*-
import os, sys, shelve, shutil
 
build_dir = "./build"
# clean the kernel
print "\n### Cleaning the kernel..."
os.system("scons -c")
 
# clean user libraries
print "\n### Cleaning user libraries..."
os.system("scons -f SConstruct.userlibs -c")
 
# clean the loader (the packer around kernel.elf)
print "\n### Cleaning the loader..."
os.system("scons -f SConstruct.loader -c")
 
# remove build dir
if os.path.exists(build_dir):
print "\n### Removing build directory..."
shutil.rmtree(build_dir)
 
c0or1k/trunk/clean.py Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property

powered by: WebSVN 2.1.0

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