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

Subversion Repositories c0or1k

[/] [c0or1k/] [trunk/] [clean.py] - Blame information for rev 5

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 drasko
#! /usr/bin/env python2.6
2
# -*- mode: python; coding: utf-8; -*-
3 5 drasko
#
4
# Top-level clean script for Codezero
5
#
6
# Cleans the Codezero environment
7
#
8 4 drasko
import os, sys, shelve, shutil
9
 
10
# clean the kernel
11
print "\n### Cleaning the kernel..."
12 5 drasko
os.system("scons -c")
13 4 drasko
 
14
# clean user libraries
15 5 drasko
print "\n### Cleaning user libs"
16 4 drasko
os.system("scons -f SConstruct.userlibs -c")
17
 
18
# clean the loader (the packer around kernel.elf)
19 5 drasko
print "\n### Cleaning loader..."
20 4 drasko
os.system("scons -f SConstruct.loader -c")
21
 
22 5 drasko
# rem build dir
23
print "\n### Removing build dir..."
24
if os.path.exists("build"):
25
    shutil.rmtree("build")

powered by: WebSVN 2.1.0

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