Files
OpenCellular/common/firmware_image.S
Vincent Palatin e24fa592d2 Initial sources import 3/3
source files mainly done by Vincent.

Signed-off-by: Vincent Palatin <vpalatin@chromium.org>

Change-Id: Ic2d1becd400c9b4b4a14d4a243af1bdf77d9c1e2
2011-12-07 19:10:02 +00:00

26 lines
707 B
ArmAsm

/* Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
* Build the full image with 3 copies (Read only, A, B) of the program
*/
#include "config.h"
#define FW_FILE(builddir,proj,sect) builddir##/##proj##.##sect##.flat
#define STRINGIFY0(name) #name
#define STRINGIFY(name) STRINGIFY0(name)
#define FW_IMAGE(sect) STRINGIFY(FW_FILE(OUTDIR,PROJECT,sect))
/* Read Only firmware */
.section .image.RO, "ax"
.incbin FW_IMAGE(RO)
/* Read Write firmware copy A */
.section .image.A, "ax"
.incbin FW_IMAGE(A)
/* Read Write firmware copy B */
.section .image.B, "ax"
.incbin FW_IMAGE(B)