diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2010-12-31 16:47:57 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-12-31 16:47:57 +0100 |
commit | 50e7ffe10d0bca1ef5b2d27ebc518b456035a18d (patch) | |
tree | c25c7f2ab1a256d0f6a6781015c9febfb9631314 /mk | |
parent | 23251c0c6ee9f7c0d3c4b20a5db9f51b4a0cc361 (diff) |
fix native builds
Diffstat (limited to 'mk')
-rw-r--r-- | mk/build.mk | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/mk/build.mk b/mk/build.mk index 4bc23cc32..f5451b5b8 100644 --- a/mk/build.mk +++ b/mk/build.mk @@ -312,10 +312,22 @@ endif ifeq ($(ADKtype),ibm-x40) @echo ADK_LINUX_NATIVE=y >> $(TOPDIR)/.defconfig @echo ADK_TARGET_SYSTEM_IBM_X40=y >> $(TOPDIR)/.defconfig + @sed -e "s#TARGET#NATIVE#" target/$(HOSTARCH)/sys-available/$(ADKtype) > \ + target/$(HOSTARCH)/sys-enabled/.$(ADKtype) + @echo "choice" > $(TOPDIR)/target/config/Config.in.native + @echo "prompt \"Target system (autodetected)\"" >> $(TOPDIR)/target/config/Config.in.native + @echo "source \"target/$(HOSTARCH)/sys-enabled/.$(ADKtype)\"" >> $(TOPDIR)/target/config/Config.in.native + @echo "endchoice" >> $(TOPDIR)/target/config/Config.in.native endif ifeq ($(ADKtype),lemote-yeelong) @echo ADK_LINUX_NATIVE=y >> $(TOPDIR)/.defconfig @echo ADK_TARGET_SYSTEM_LEMOTE_YEELONG=y >> $(TOPDIR)/.defconfig + @sed -e "s#TARGET#NATIVE#" target/$(HOSTARCH)/sys-available/$(ADKtype) > \ + target/$(HOSTARCH)/sys-enabled/.$(ADKtype) + @echo "choice" > $(TOPDIR)/target/config/Config.in.native + @echo "prompt \"Target system (autodetected)\"" >> $(TOPDIR)/target/config/Config.in.native + @echo "source \"target/$(HOSTARCH)/sys-enabled/.$(ADKtype)\"" >> $(TOPDIR)/target/config/Config.in.native + @echo "endchoice" >> $(TOPDIR)/target/config/Config.in.native endif @echo 'source "target/config/Config.in.arch.default"' > target/config/Config.in.arch @echo 'source "target/config/Config.in.arch.choice"' >> target/config/Config.in.arch @@ -383,9 +395,21 @@ ifneq (,$(filter CYGWIN%,${OStype})) endif ifeq ($(ADKtype),ibmx-40) @echo ADK_TARGET_SYSTEM_IBM_X40=y >> $(TOPDIR)/all.config + @sed -e "s#TARGET#NATIVE#" target/$(HOSTARCH)/sys-available/$(ADKtype) > \ + target/$(HOSTARCH)/sys-enabled/.$(ADKtype) + @echo "choice" > $(TOPDIR)/target/config/Config.in.native + @echo "prompt \"Target system (autodetected)\"" >> $(TOPDIR)/target/config/Config.in.native + @echo "source \"target/$(HOSTARCH)/sys-enabled/.$(ADKtype)\"" >> $(TOPDIR)/target/config/Config.in.native + @echo "endchoice" >> $(TOPDIR)/target/config/Config.in.native endif ifeq ($(ADKtype),lemote-yeelong) @echo ADK_TARGET_SYSTEM_LEMOTE_YEELONG=y >> $(TOPDIR)/all.config + @sed -e "s#TARGET#NATIVE#" target/$(HOSTARCH)/sys-available/$(ADKtype) > \ + target/$(HOSTARCH)/sys-enabled/.$(ADKtype) + @echo "choice" > $(TOPDIR)/target/config/Config.in.native + @echo "prompt \"Target system (autodetected)\"" >> $(TOPDIR)/target/config/Config.in.native + @echo "source \"target/$(HOSTARCH)/sys-enabled/.$(ADKtype)\"" >> $(TOPDIR)/target/config/Config.in.native + @echo "endchoice" >> $(TOPDIR)/target/config/Config.in.native endif @echo 'source "target/config/Config.in.arch.default"' > target/config/Config.in.arch @echo 'source "target/config/Config.in.arch.choice"' >> target/config/Config.in.arch |