Skip to content

Commit

Permalink
add makefile target buildroot-savedefconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
tambewilliam committed Oct 8, 2021
1 parent 7f76c34 commit 84f98bc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ Rebuild the Linux kernel:

make -f pu32/makefile buildroot-menuconfig

Optionally save Buildroot configuration to `buildroot/configs/pu32_defconfig`:

make -f pu32/makefile buildroot-savedefconfig

Rebuild Buildroot:

make -f pu32/makefile touch-buildroot pu32-build/buildroot
7 changes: 7 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,13 @@ buildroot-menuconfig:
make -C ${BUILDROOT_SOURCE} O=${BUILDROOT_BUILD} pu32_defconfig; fi
if [ -e ${BUILDROOT_BUILD} ]; then cd ${BUILDROOT_BUILD} && make menuconfig; fi

buildroot-savedefconfig:
$(eval BUILDROOT_BUILD := "${PWD}/buildroot-build/")
$(eval BUILDROOT_SOURCE := "${PWD}/pu32/buildroot/")
if [ ! -e ${BUILDROOT_BUILD} ]; then mkdir -p ${BUILDROOT_BUILD} && cd ${BUILDROOT_BUILD} && \
make -C ${BUILDROOT_SOURCE} O=${BUILDROOT_BUILD} pu32_defconfig; fi
if [ -e ${BUILDROOT_BUILD} ]; then cd ${BUILDROOT_BUILD} && make savedefconfig; fi

touch-binutils:
touch pu32/binutils
touch-gcc:
Expand Down

0 comments on commit 84f98bc

Please sign in to comment.