Files
OpenCellular/common/firmware_image.S
Randall Spangler fb123b4838 Only one RW image is now the default
And if RW B isn't enabled, it's not even linked.

BUG=chrome-os-partner:10881
TEST=on link, should be no B image, and 'sysjump B' should fail
On BDS, still should be A and B images

Signed-off-by: Randall Spangler <rspangler@chromium.org>
Change-Id: Icb2af07881cc7e28b9b877f45824486a22fde8d7
Reviewed-on: https://gerrit.chromium.org/gerrit/26116
2012-06-26 13:58:54 -07:00

29 lines
758 B
ArmAsm

/* Copyright (c) 2012 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 up to 3 copies (Read only, A, B) of the program
*/
#include "board.h"
#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)
#ifdef CONFIG_RW_B
/* Read Write firmware copy B */
.section .image.B, "ax"
.incbin FW_IMAGE(B)
#endif