diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-04-01 11:56:58 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-04-01 11:56:58 -0600 |
commit | 87eb0b028fd939edca5d92c58b987926f6dcf7e5 (patch) | |
tree | 33ffd62b2f4a056cf2c19269fba8f41496471fc1 /nuttx/Makefile.unix | |
parent | 610e2aa0c224e2936fe8009ef4a2351ce607067a (diff) | |
download | px4-nuttx-87eb0b028fd939edca5d92c58b987926f6dcf7e5.tar.gz px4-nuttx-87eb0b028fd939edca5d92c58b987926f6dcf7e5.tar.bz2 px4-nuttx-87eb0b028fd939edca5d92c58b987926f6dcf7e5.zip |
Top level make will now generate a U-Boot uImage file
Diffstat (limited to 'nuttx/Makefile.unix')
-rw-r--r-- | nuttx/Makefile.unix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/nuttx/Makefile.unix b/nuttx/Makefile.unix index 604da4fd7..1b123bd62 100644 --- a/nuttx/Makefile.unix +++ b/nuttx/Makefile.unix @@ -1,7 +1,7 @@ ############################################################################ # Makefile.unix # -# Copyright (C) 2007-2012 Gregory Nutt. All rights reserved. +# Copyright (C) 2007-2012, 2014 Gregory Nutt. All rights reserved. # Author: Gregory Nutt <gnutt@nuttx.org> # # Redistribution and use in source and binary forms, with or without @@ -675,6 +675,14 @@ ifeq ($(CONFIG_RAW_BINARY),y) @echo "CP: $(BIN).bin" $(Q) $(OBJCOPY) $(OBJCOPYARGS) -O binary $(BIN) $(BIN).bin endif +ifeq ($(CONFIG_UBOOT_UIMAGE),y) + @echo "MKIMAGE: uImage" + $(Q) mkimage -A arm -O linux -C none -T kernel -a $(CONFIG_UIMAGE_LOAD_ADDRESS) \ + -e $(CONFIG_UIMAGE_ENTRY_POINT) -n $(BIN) -d $(BIN).bin uImage + $(Q) if [ -w /tftpboot ] ; then \ + cp -f uImage /tftpboot/uImage; \ + fi +endif # $(BIN) # |