Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
targets
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Feed
targets
Commits
0099bfe8
Commit
0099bfe8
authored
5 years ago
by
Markus Gothe
Committed by
Benjamin Larsson
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add ability to parse multiple values for 'boardid' and 'voiceboardid'.
Change-Id: I06e625b224ace1abefcd4e31c2399a529c81f544
parent
a4b968c5
Branches
Branches containing commit
No related tags found
1 merge request
!29
Nvram edit
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
iopsys-brcm63xx-arm/image/Makefile
+30
-0
30 additions, 0 deletions
iopsys-brcm63xx-arm/image/Makefile
with
30 additions
and
0 deletions
iopsys-brcm63xx-arm/image/Makefile
+
30
−
0
View file @
0099bfe8
...
...
@@ -394,10 +394,39 @@ else
TARGET_IMAGE_MAC_NUM
=
--numbermac
=
$(
CONFIG_TARGET_IMAGE_PRODUCTION_NUM_MACADDR
)
endif
BUILD_ECC_USE_BOARDIDS
=
0
ifeq
($(CONFIG_TARGET_IMAGE_PRODUCTION_PARAMS),y)
ifneq
($(CONFIG_TARGET_IMAGE_PRODUCTION_BOARD_ID),"")
BUILD_ECC_USE_BOARDIDS
=
1
endif
endif
define
Production_image
#Copy cferom bootloader and ubi nand ecc image to bin directory.
echo
"In Production Image"
ifeq
($(BUILD_ECC_USE_BOARDIDS),1)
# This needs to be compact unfortunately!
@
i
=
0
;
\
$(
eval
i
=
$(
shell
echo
$$(
(
$(
i
)
+1
)))
)
\
$(
foreach boardid,
$(
subst
",,
$(
CONFIG_TARGET_IMAGE_PRODUCTION_BOARD_ID
))
,
\
$(
eval voice_boardid=
$(
shell echo
$(
word
$(
i
)
,
$(
subst "
,,
$(
subst
\,
,
$(
CONFIG_TARGET_IMAGE_PRODUCTION_VOICEBOARD_ID
))))))
\
cd
$(
KDIR
)
;
cp
$(
KDIR
)
/cfe
$(
CONFIG_BCM_CHIP_ID
)
_nand.v
$(
KDIR
)
/cfe
$(
CONFIG_BCM_CHIP_ID
)
_nand.v.tmp.
$(
boardid
);
\
cd
$(
KDIR
)
;
$(
HOSTTOOLS_DIR
)
/editnvram
$(
TARGET_IMAGE_IS_LITTLE_ENDIAN
)
--boardid
=
"
$(
boardid
)
"
--voiceboardid
=
"
$(
voice_boardid
)
"
--production
=
$(
TARGET_IMAGE_PRODUCTION_FLAG
)
$(
TARGET_IMAGE_MAC_NUM
)
$(
TARGET_IMAGE_BASE_MAC
)
-O
$(
CONFIG_TARGET_IMAGE_PRODUCTION_NVRAM_OFFSET
)
cfe
$(
CONFIG_BCM_CHIP_ID
)
_nand.v.tmp.
$(
boardid
)
cfe
$(
CONFIG_BCM_CHIP_ID
)
_nand.v.out
&&
mv
cfe
$(
CONFIG_BCM_CHIP_ID
)
_nand.v.out cfe
$(
CONFIG_BCM_CHIP_ID
)
_nand.v.tmp.
$(
boardid
);
\
cd
$(
KDIR
)
;
$(
STAGING_DIR_HOST
)
/bin/nand-image-builder
-i
cfe
$(
CONFIG_BCM_CHIP_ID
)
_nand.v.tmp.
$(
boardid
)
-o
cfe
$(
CONFIG_BCM_CHIP_ID
)
_nand.
$(
boardid
)
.ecc
-b
$(
CONFIG_TARGET_NAND_BLOCKSZ
)
-p
$(
CONFIG_TARGET_NAND_PAGESZ
)
-s
$(
CONFIG_TARGET_NAND_SPARE_SIZE
)
-e
$(
CONFIG_TARGET_NAND_BCH_LEVEL
)
-m
$(
FIELD_ORDER
);
\
cd
$(
KDIR
)
;
$(
STAGING_DIR_HOST
)
/bin/nand-image-builder
-i
root.ubi
-o
root-nand.
$(
boardid
)
.ecc
-b
$(
CONFIG_TARGET_NAND_BLOCKSZ
)
-p
$(
CONFIG_TARGET_NAND_PAGESZ
)
-s
$(
CONFIG_TARGET_NAND_SPARE_SIZE
)
-e
$(
CONFIG_TARGET_NAND_BCH_LEVEL
)
-m
$(
FIELD_ORDER
);
\
cp
$(
KDIR
)
/cfe
$(
CONFIG_BCM_CHIP_ID
)
_nand.
$(
boardid
)
.ecc
$(
BIN_DIR
)
/
$(
IHGSP_BUILD_VERSION
)
_cfe.
$(
boardid
)
.ecc
;
\
cp
$(
KDIR
)
/root-nand.
$(
boardid
)
.ecc
$(
BIN_DIR
)
/
$(
IHGSP_BUILD_VERSION
)
_root.
$(
boardid
)
.ecc
;
\
echo
-e
"Part
\t
Start
\t
End
\t
Prog
\t
BadBlock
\t
Part-Name"
>
$(
BIN_DIR
)
/nand-partition.
$(
boardid
)
.txt
;
\
echo
-e
"0
\t
$(
CFE_START_BLOCK
)
\t
$(
CFE_END_BLOCK
)
\t
0
\t
0
\t\t
Bootloader"
>>
$(
BIN_DIR
)
/nand-partition.
$(
boardid
)
.txt
;
\
echo
-e
"1
\t
$(
UBI_START_BLOCK
)
\t
$(
UBI_END_BLOCK
)
\t
0
\t
0
\t\t
System"
>>
$(
BIN_DIR
)
/nand-partition.
$(
boardid
)
.txt
;
\
ln
-sf
$(
BIN_DIR
)
/
$(
IHGSP_BUILD_VERSION
)
_cfe.
$(
boardid
)
.ecc
$(
BIN_DIR
)
/cfe.
$(
boardid
)
.ecc
;
\
ln
-sf
$(
BIN_DIR
)
/
$(
IHGSP_BUILD_VERSION
)
_root.
$(
boardid
)
.ecc
$(
BIN_DIR
)
/root.
$(
boardid
)
.ecc
;
\
rm
$(
KDIR
)
/cfe
$(
CONFIG_BCM_CHIP_ID
)
_nand.v.tmp.
$(
boardid
);
\
$(
eval
i
=
$(
shell
echo
$$(
(
$(
i
)
+1
))))
\
)
else
cp
$(KDIR)
;
cp
$(KDIR)/cfe$(CONFIG_BCM_CHIP_ID)_nand.v
$(KDIR)/cfe$(CONFIG_BCM_CHIP_ID)_nand.v.tmp
ifeq
($(CONFIG_TARGET_IMAGE_PRODUCTION_PARAMS),y)
...
...
@@ -421,6 +450,7 @@ endif
ln
-sf
$(BIN_DIR)/$(IHGSP_BUILD_VERSION)_cfe.ecc
$(BIN_DIR)/cfe.ecc
ln
-sf
$(BIN_DIR)/$(IHGSP_BUILD_VERSION)_root.ecc
$(BIN_DIR)/root.ecc
rm
$(KDIR)/cfe$(CONFIG_BCM_CHIP_ID)_nand.v.tmp
endif
endef
define
Image/Build/imgY3
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment