Articulo de referencia

Caja de rascar 2

{{cite web\n | url=https://github.com/sailfishos/scratchbox2/tree/2.2.4\n | title=Scratchbox 2.2.4\n | work=Scratchbox 2 (sb2)\n | date=2012-04-01\n | accessdate=2023-01-27}} "}...

Scratchbox  2 (a menudo abreviado como " sb2 " o " sbox2 ") es un conjunto de herramientas de compilación cruzada diseñado para facilitar el desarrollo de aplicaciones Linux embebidas . También proporciona un conjunto completo de herramientas para integrar y compilar de forma cruzada una distribución Linux completa .

Predecesor

Scratchbox era un kit de herramientas para el desarrollo de aplicaciones integradas en Linux que también proporcionaba soporte para la compilación cruzada entre distribuciones de Linux.

El proyecto fue desarrollado inicialmente por Movial y patrocinado por Nokia . Estaba licenciado bajo la Licencia Pública General de GNU ( GPL ).

Scratchbox fue diseñado para la plataforma de desarrollo Maemo (tabletas de Internet Nokia 770 , N800 y N810 , y teléfonos Nokia N900 y N9 ) y era compatible con la arquitectura ARM y x86 . Las arquitecturas PowerPC y MIPS funcionaban a nivel experimental.

Descripción funcional

En el mundo Linux, al compilar software , muchos parámetros se detectan automáticamente en el sistema anfitrión (como las bibliotecas instaladas y la configuración del sistema), por ejemplo, mediante los scripts de Autotools . Cuando se desea compilar software para un sistema embebido mediante compilación cruzada, la mayoría de los parámetros detectados automáticamente son incorrectos: es decir, la configuración del sistema anfitrión no es la misma que la del sistema embebido , de ahí el nombre de compilación cruzada../configure

Sin Scratchbox  2, hay que configurar manualmente muchos parámetros y "manipular" el "proceso de configuración" para generar código ejecutable que funcione para el dispositivo integrado.

Scratchbox  2 permite configurar un entorno "virtual" que engañará a Autotools y otros ejecutables haciéndoles creer que se están ejecutando directamente en el dispositivo integrado con su configuración.

Moreover, Scratchbox 2 provides a technique called "CPU-transparency" that goes further: With "CPU-transparency", executables built for the host CPU or for the target CPU could be executed directly on the host with sb2 handling the task to emulate a different CPU-architecture if necessary to run software components compiled for the target CPU. Hence a build process can mix using programs built for different CPU-architectures. That is especially useful when a build process requires to build a software component first as a build dependency for building another software component: For example, a "Lexer" must be built first in order to generate code for / of another software component with it.

Historic Git repositories of Scratchbox 2

  • BinChengfei/scratchbox2 at GitHub provided an unaltered mirror of the former Scratchbox 2 Git repository at Gitorious with its latest Git tag being 2.3.90 on 2012-09-05.
  • lbt/scratchbox2 (up to tag pkg-mer-2.3.90-4 on 2013-04-25) and mer-packages/scratchbox2 (up to tag 2.3.90-git2 on 2014-03-05), both at GitHub, show intermediate states before the Nemo / Mer merger, when Scratchbox 2's active source tree was moved to the now dissolved git.merproject.org.
  • The continuation of the former source code repository git.merproject.org/mer-core/scratchbox2 is sailfishos/scratchbox2 at GitHub, which contains all commit history and Git tags of all aforementioned Git repositories.

References

  1. "Scratchbox 2.2.4". Scratchbox 2 (sb2). 2012-04-01. Retrieved 2023-01-27.
  2. "Scratchbox 2.3.90". Scratchbox 2 (sb2). 2012-09-05. Retrieved 2023-01-27.
  3. "LGPL-2.1 license". Scratchbox 2. 2013-09-05. Retrieved 2024-02-26.
  • Scratchbox 2 documentation
  • An archived version of the original Scratchbox 2 website at the Wayback Machine(archived 2013-06-02)