Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "external" ccache to speed up builds; preserve caches outside Docker container #83

Open
wants to merge 2 commits into
base: 0.8.5-rc1
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -27,7 +27,8 @@ build-essential \
libncurses-dev \
mtools \
fdisk \
dosfstools
dosfstools \
ccache

# Locale
RUN locale-gen en_US.UTF-8
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -7,4 +7,6 @@ services:
volumes:
- ./opt:/opt
- ./images:/images
- ./.ccache:/root/.cache/ccache
- ./.buildroot-ccache:/root/.buildroot-ccache
Comment on lines +10 to +11
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we please also add both folders to .gitignore? Prevents accidental committing those and keeps them out of git status. Otherwise +1. thanks

command: "${SS_ARGS:---no-op}"
4 changes: 2 additions & 2 deletions opt/build.sh
Original file line number Diff line number Diff line change
@@ -114,9 +114,9 @@ build_image() {
# Setup external tree
#make BR2_EXTERNAL="../${config_dir}/" O="${build_dir}" -C ./buildroot/ #2> /dev/null > /dev/null

make BR2_EXTERNAL="../${config_dir}/" O="${build_dir}" -C ./buildroot/ ${config_name}_defconfig
PATH="/usr/lib/ccache:${PATH}" make BR2_EXTERNAL="../${config_dir}/" O="${build_dir}" -C ./buildroot/ ${config_name}_defconfig
cd "${build_dir}"
make
PATH="/usr/lib/ccache:${PATH}" make

# if successful, mv seedsigner_os.img image to /images
# rename to image to include branch name and config name, then compress