mirror of
https://github.com/drasko/codezero.git
synced 2026-02-08 16:03:14 +01:00
Changes since April
Clean up of build directories. Simplifications to capability model.
This commit is contained in:
@@ -9,13 +9,16 @@ from os.path import join
|
||||
|
||||
# Get global paths
|
||||
PROJRELROOT = '../../../'
|
||||
|
||||
sys.path.append(PROJRELROOT)
|
||||
|
||||
from config.configuration import *
|
||||
from config.projpaths import *
|
||||
from scripts.config.configuration import *
|
||||
from scripts.config.projpaths import *
|
||||
|
||||
Import('env', 'arch', 'platform', 'type')
|
||||
config = configuration_retrieve()
|
||||
arch = config.arch
|
||||
platform = config.platform
|
||||
|
||||
Import('env', 'type')
|
||||
variant = type
|
||||
|
||||
e = env.Clone()
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
# Copyright © 2009 B Labs Ltd
|
||||
|
||||
import os, sys, shelve
|
||||
from configure import *
|
||||
from scripts.config.config_invoke import *
|
||||
|
||||
variant = "baremetal"
|
||||
config = configuration_retrieve()
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <l4/config.h>
|
||||
#include <libdev/uart.h>
|
||||
#include <dev/uart.h>
|
||||
|
||||
int __fputc(int c, FILE *stream)
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
import os, sys, shelve
|
||||
from os.path import join
|
||||
from configure import *
|
||||
from scripts.config.config_invoke import *
|
||||
|
||||
config = configuration_retrieve()
|
||||
arch = config.arch
|
||||
|
||||
@@ -376,16 +376,16 @@ elf_loadFile(void *elfFile, bool phys)
|
||||
pheader_type = elf_getProgramHeaderType(elfFile, i);
|
||||
// printf("Elf program header type: %p\n", pheader_type);
|
||||
// Comment
|
||||
//printf("Copying to range from 0x%x to 0x%x of size: 0x%x\n", (unsigned int)dest, (unsigned int)dest + (unsigned int)len, (unsigned int)len);
|
||||
printf("Copying to range from 0x%x to 0x%x of size: 0x%x\n", (unsigned int)dest, (unsigned int)dest + (unsigned int)len, (unsigned int)len);
|
||||
memcpy((void*) (uintptr_t) dest, (void*) (uintptr_t) src, len);
|
||||
dest += len;
|
||||
clrsize = elf_getProgramHeaderMemorySize(elfFile, i) - len;
|
||||
// printf("Clearing memory... starting from %x, size: %x\n", (unsigned int)dest, (unsigned int)clrsize);
|
||||
printf("Clearing memory... starting from %x, size: %x\n", (unsigned int)dest, (unsigned int)clrsize);
|
||||
memset((void*) (uintptr_t) dest, 0, clrsize);
|
||||
// printf("Memory cleared.\n");
|
||||
}
|
||||
// And this one
|
||||
// printf("\n");
|
||||
printf("\n");
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user