Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
ffbs-gluon
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
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
ffbs
ffbs-gluon
Commits
bc7c4c70
Commit
bc7c4c70
authored
12 years ago
by
Matthias Schiffer
Browse files
Options
Downloads
Patches
Plain Diff
Create package index and do other image preparations just once
parent
1850b4ed
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Makefile
+2
-3
2 additions, 3 deletions
Makefile
builder/Makefile
+9
-12
9 additions, 12 deletions
builder/Makefile
builder/Makefile.image
+7
-0
7 additions, 0 deletions
builder/Makefile.image
with
18 additions
and
15 deletions
Makefile
+
2
−
3
View file @
bc7c4c70
...
...
@@ -41,9 +41,8 @@ prepare:
$(GLUON_OPENWRTDIR)/scripts/feeds
install
-a
echo
-e
"CONFIG_TARGET_$(BOARD)=y\nCONFIG_TARGET_ROOTFS_JFFS2=n\n$(subst ${ },\n,$(patsubst %,CONFIG_PACKAGE_%=m,$(GLUON_PACKAGES) $(PROFILE_PACKAGES)))"
>
$(GLUON_OPENWRTDIR)/.config
$(MAKE)
-C
$(GLUON_OPENWRTDIR)
defconfig
prepare
$(MAKE)
-C
$(GLUON_BUILDERDIR)
kernel
$(MAKE)
-C
$(GLUON_OPENWRTDIR)
package/compile
$(MAKE)
-C
$(GLUON_OPENWRTDIR)
defconfig
prepare
package/compile
$(MAKE)
-C
$(GLUON_BUILDERDIR)
prepare
touch
$(prepared_stamp)
...
...
This diff is collapsed.
Click to expand it.
builder/Makefile
+
9
−
12
View file @
bc7c4c70
...
...
@@ -71,22 +71,18 @@ PACKAGES:=
include
$(INCLUDE_DIR)/kernel-build.mk
kernel
:
FORCE
prepare
:
FORCE
$(
Kernel/CompileImage
)
$(
MAKE
)
-C
$(
TOPDIR
)
/target/linux/
$(
BOARD
)
/image
-f
$(
GLUON_BUILDERDIR
)
/Makefile.image prepare
$(
MAKE
)
package_index
_call_image
:
echo
'Building images for
$(
BOARD
)$(
if
$($(
USER_PROFILE
)
_NAME
)
, -
$($(
USER_PROFILE
)
_NAME
))
'
echo
'Packages:
$(
BUILD_PACKAGES
)
'
echo
rm
-rf
$(
TARGET_DIR
)
mkdir
-p
$(
TARGET_DIR
)
$(
BIN_DIR
)
$(
TMP_DIR
)
if
[
!
-f
"
$(
PACKAGE_DIR
)
/Packages"
]
||
[
!
-f
"
$(
PACKAGE_DIR
)
/Packages.gz"
]
||
[
"
`
find
$(
PACKAGE_DIR
)
-cnewer
$(
PACKAGE_DIR
)
/Packages.gz
`
"
]
;
then
\
echo
"Package list missing or not up-to-date, generating it."
;
\
$(
MAKE
)
package_index
;
\
else
\
mkdir
-p
$(
TARGET_DIR
)
/tmp
;
\
$(
OPKG
)
update
;
\
fi
mkdir
-p
$(
TARGET_DIR
)
$(
BIN_DIR
)
$(
TMP_DIR
)
$(
TARGET_DIR
)
/tmp
$(
OPKG
)
update
$(
MAKE
)
package_install
ifneq
($(USER_FILES),)
$(
MAKE
)
copy_files
...
...
@@ -97,11 +93,9 @@ endif
package_index
:
FORCE
@
echo
@
echo
Building package index...
@
mkdir
-p
$(
TOPDIR
)
/tmp
$(
TOPDIR
)
/dl
$(
TARGET_DIR
)
/tmp
(
cd
$(
PACKAGE_DIR
);
$(
SCRIPT_DIR
)
/ipkg-make-index.sh
.
>
Packages
&&
\
gzip
-9c
Packages
>
Packages.gz
\
)
>
/dev/null 2>/dev/null
$(
OPKG
)
update
package_install
:
FORCE
@
echo
...
...
@@ -139,10 +133,13 @@ package_postinst: FORCE
)
$(
if
$(
CONFIG_CLEAN_IPKG
)
,rm
-rf
$(
TARGET_DIR
)
/usr/lib/opkg
)
include
$(INCLUDE_DIR)/image.mk
build_image
:
FORCE
@
echo
@
echo
Building images...
$(
NO_TRACE_MAKE
)
-C
$(
TOPDIR
)
/target/linux/
$(
BOARD
)
/image
install
TARGET_BUILD
=
1
IMG_PREFIX
=
"gluon-
$(
BOARD
)$(
if
$(
SUBTARGET
)
,-
$(
SUBTARGET
))
"
\
$(
call Image/mkfs/prepare
)
$(
NO_TRACE_MAKE
)
-C
$(
TOPDIR
)
/target/linux/
$(
BOARD
)
/image
install
TARGET_BUILD
=
1
IB
=
1
IMG_PREFIX
=
"gluon-
$(
BOARD
)$(
if
$(
SUBTARGET
)
,-
$(
SUBTARGET
))
"
\
$(
if
$(
USER_PROFILE
)
,PROFILE
=
"
$(
USER_PROFILE
)
"
)
image
:
...
...
This diff is collapsed.
Click to expand it.
builder/Makefile.image
0 → 100644
+
7
−
0
View file @
bc7c4c70
override
BuildImage
:=
# The Makefile included here is $(TOPDIR)/target/linux/$(BOARD)/image/Makefile
include
Makefile
prepare
:
FORCE
$(
call Image/Prepare
)
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