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

Subversion Repositories c0or1k

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

Go to most recent revision | 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
import os, sys, shelve, shutil
4
 
5
build_dir = "./build"
6
# clean the kernel
7
print "\n### Cleaning the kernel..."
8
os.system("scons -c")
9
 
10
# clean user libraries
11
print "\n### Cleaning user libraries..."
12
os.system("scons -f SConstruct.userlibs -c")
13
 
14
# clean the loader (the packer around kernel.elf)
15
print "\n### Cleaning the loader..."
16
os.system("scons -f SConstruct.loader -c")
17
 
18
# remove build dir
19
if os.path.exists(build_dir):
20
   print "\n### Removing build directory..."
21
   shutil.rmtree(build_dir)
22
 

powered by: WebSVN 2.1.0

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