From e56f2097187d89bb84abfda58de9585a5bec4073 Mon Sep 17 00:00:00 2001 From: Tom King Date: Sun, 21 Aug 2005 00:57:04 +0000 Subject: [PATCH] Added back in -image targets for Master makes for unslung, openembedded, and ucslugc --- Makefile | 26 ++++++++++++++++++++++++-- common/openembedded.mk | 12 ++++++++---- 2 files changed, 32 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index e984bd7de3..c94f257eb6 100644 --- a/Makefile +++ b/Makefile @@ -163,8 +163,30 @@ else ucslugc build-ucslugc: endif -.PHONY: optware build-optware -optware build-optware: build-optware-nslu2 build-optware-wl500g + +.PHONY: unslung-image build-unslung-image +ifneq ($(HOST_MACHINE),armeb) +unslung-image build-unslung-image: unslung/.configured bitbake/.configured openembedded/.configured + ( cd unslung ; ${MAKE} image) +else +unslung-image build-unslung-image: +endif + +.PHONY: openslug-image build-openslug-image +ifneq ($(HOST_MACHINE),armeb) +openslug-image build-openslug-image: openslug/.configured bitbake/.configured openembedded/.configured + ( cd openslug ; ${MAKE} image ) +else +openslug build-openslug: +endif + +.PHONY: ucslugc build-ucslugc +ifneq ($(HOST_MACHINE),armeb) +ucslugc-image build-ucslugc-image: ucslugc/.configured bitbake/.configured openembedded/.configured + ( cd ucslugc ; ${MAKE} image) +else +ucslugc build-ucslugc: +endif .PHONY: optware-nslu2 build-optware-nslu2 ifneq ($(HOST_MACHINE),armeb) diff --git a/common/openembedded.mk b/common/openembedded.mk index c4b5d564fe..bf691ce069 100644 --- a/common/openembedded.mk +++ b/common/openembedded.mk @@ -17,14 +17,18 @@ REQUIRED_DIRS = bitbake openembedded FIRMWARE_DEPS = create-topdir $(BUILD_DIRS) $(REQUIRED_DIRS) BITBAKE = bitbake -# The default rule is to build the firmware in an unprotected environment. -firmware: $(FIRMWARE_DEPS) +# The default rule is to build everything in an unprotected environment. +distro: $(FIRMWARE_DEPS) . ./setup-env; exec ${BITBAKE} $(DISTRO)-packages +# The default rule is to build the firmware in an unprotected environment. +image: $(FIRMWARE_DEPS) + . ./setup-env; exec ${BITBAKE} $(DISTRO)-image + # This rule clobbers the environment (note that ccache uses '$HOME' by # default, so the cache will end up there). -firmware-safe: - env -i HOME="$${HOME}" PATH="$${PATH}" $(MAKE) firmware +distro-safe: + env -i HOME="$${HOME}" PATH="$${PATH}" $(MAKE) distro # The default rule is to build the firmware in an unprotected environment. prefetch: $(FIRMWARE_DEPS) -- 2.39.5