From: Masahiro Yamada Date: Tue, 14 Jan 2014 20:47:12 +0900 Subject: [U-Boot] Compiling fw_printenv tool In-Reply-To: References: <52988D88.5000806@xtech2.lv> Message-ID: <20140114204711.E100.AA925319@jp.panasonic.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Detlev > > How do I cross compile it for my embedded system? Do I just set the > > HOSTCC environment variable in the Makefile? > > No changes in any makefiles are needed, just do > > make HOSTCC=arm-none-linuex-gnueabi-gcc env It looks weird to me. I think HOSTCC should be always "gcc". In my understanding, tools/env/fw_printenv is not a host program but a one for the target embedded Linux. Is there any reason that we don't fix tools/env/Makefile? $(obj)fw_printenv: $(HOSTSRCS) $(HEADERS) $(HOSTCC) $(HOSTCFLAGS_NOPED) $(HOSTLDFLAGS) -o $@ $(HOSTSRCS) $(HOSTSTRIP) $@ to $(obj)fw_printenv: $(HOSTSRCS) $(HEADERS) $(CC) $(HOSTCFLAGS_NOPED) $(HOSTLDFLAGS) -o $@ $(HOSTSRCS) $(STRIP) $@ Best Regards Masahiro Yamada