Ticket #55 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

ERESI configure should allows partial or complete compilation of libasm (depending on current architecture)

Reported by: may Owned by: enioh
Priority: minor Milestone: v0.81
Component: libasm Version:
Severity: Medium Keywords:
Cc:

Description

Since libasm takes so much time to compile and we have so many files which is a problem on some OS, it would be nice to have --enable-complete-libasm that allow to compile everything, while by default, we would just compile the code for the local architecture.

Change History

Changed 2 years ago by enioh

  • owner set to enioh

Changed 2 years ago by enioh

  • status changed from new to assigned

Makefile was already modified:

You can now compile an eresi module appart with this syntax:

 gmake component NAME=mycomponent

Where mycomponent may be any Eresi component: kernsh, etrace, e2dbg.

A system of dependancies is used to compile requested modules.

All rules can be found in build/defs/dep-rules.def

We have to define if it currently fits ours needs or not.

Changed 2 years ago by enioh

  • status changed from assigned to closed
  • resolution set to fixed

Changed 2 years ago by enioh

A new branch has been created to modify libasm and the build process. This branch is URL: https://svn.eresi-project.org/svn/branches/eresi-0.81-a8-1

You can checkout it and use configure --libasm-<arch> where arch may be choosed among the following :

  • ia32
  • sparc
  • mips

Note about the API:

asm_init_<arch>(asm_processor *proc) may not be used and asm_init_arch(asm_processor *proc, int arch) where arch is one of the followings : ASM_PROC_IA32, ASM_PROC_SPARC, ASM_PROC_MIPS. asm_init_arch reports 0 on error or 1 on success.

Last note : The makefile is probably missing some sections about kernel part or should be corrected for libreadline support. The old Makefile is still generated by renamed Makefile.gen

Note: See TracTickets for help on using tickets.