Skip to content

Commit

Permalink
Update to work with recent buildroot version
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienVdG committed Jun 27, 2016
1 parent b8becd0 commit d12676b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions common.mk
Expand Up @@ -56,13 +56,15 @@ savedefconfig:

# generate from a defconfig then save as current configuration
%_defconfig:
$(MAKE) $(MAKEARGS) $(DEFCONFIG) $@ savedefconfig
$(MAKE) $(MAKEARGS) $(DEFCONFIG) $@
$(MAKE) $(MAKEARGS) $(DEFCONFIG) savedefconfig
$(call UPDATE_DEFCONFIG)


# update from current configuration, run the command, then save the result
$(config_change_targets): $(DEFCONFIG_FILE)
$(MAKE) $(MAKEARGS) $(DEFCONFIG) defconfig $@ savedefconfig
$(MAKE) $(MAKEARGS) $(DEFCONFIG) defconfig $@
$(MAKE) $(MAKEARGS) $(DEFCONFIG) savedefconfig

_all:
$(MAKE) $(MAKEARGS) $(DEFCONFIG) $(all)
Expand All @@ -83,7 +85,8 @@ define UPDATE_DEFCONFIG
echo 'BR2_ROOTFS_OVERLAY="$$(BR2_EXTERNAL)/overlay"' >> $(DEFCONFIG_FILE)
echo 'BR2_PACKAGE_OVERRIDE_FILE="$$(BR2_EXTERNAL)/local.mk"' >> $(DEFCONFIG_FILE)
echo 'BR2_GLOBAL_PATCH_DIR="$$(BR2_EXTERNAL)/patch"' >> $(DEFCONFIG_FILE)
$(MAKE) $(MAKEARGS) $(DEFCONFIG) defconfig savedefconfig
$(MAKE) $(MAKEARGS) $(DEFCONFIG) defconfig
$(MAKE) $(MAKEARGS) $(DEFCONFIG) savedefconfig
endef


0 comments on commit d12676b

Please sign in to comment.