mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-02 21:25:03 +00:00
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
29 lines
758 B
ArmAsm
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
|