Changeset 3e828ea in mainline for tools/mkarray_for_meson.sh


Ignore:
Timestamp:
2019-09-23T12:49:29Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9be2358
Parents:
9259d20 (diff), 1a4ec93f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Jiri Svoboda <jiri@…> (2019-09-22 12:49:07)
git-committer:
Jiri Svoboda <jiri@…> (2019-09-23 12:49:29)
Message:

Merge changes from master, especially Meson build

File:
1 moved

Legend:

Unmodified
Added
Removed
  • tools/mkarray_for_meson.sh

    • Property mode changed from 100644 to 100755
    r9259d20 r3e828ea  
     1#!/bin/sh
     2
    13#
    2 # Copyright (c) 2010 Jiri Svoboda
     4# Copyright (c) 2019 Jiří Zárevúcky
    35# All rights reserved.
    46#
     
    2729#
    2830
    29 .PHONY: all clean
     31TOOLS_DIR=`which -- "$0" 2>/dev/null`
     32if [ -z "$TOOLS_DIR" ]; then
     33        TOOLS_DIR=`which -- "$BASH_SOURCE" 2>/dev/null`
     34fi
     35TOOLS_DIR=`dirname $TOOLS_DIR`
     36TOOLS_DIR=`cd $TOOLS_DIR && echo $PWD`
    3037
    31 include Makefile.common
    3238
    33 IMAGE_NAME = HelenOS-$(RELEASE)
    34 BIN_OUTPUT = image.bin
     39_outdir="$1"
     40_arg1="$2"
     41_arg2="$3"
     42_arg3="$4"
     43_arg4="$5"
     44_inputs=""
    3545
    36 all: $(POST_OUTPUT)
     46shift 5
    3747
    38 $(BIN_OUTPUT): $(BOOT_OUTPUT)
    39         $(OBJCOPY) -O binary $< $@
     48for file in "$@"; do
     49        _inputs="$_inputs $PWD/${file}"
     50done
    4051
    41 $(POST_OUTPUT): $(BIN_OUTPUT)
    42         $(MKUIMAGE) -name "$(IMAGE_NAME)" -laddr $(LADDR) -saddr $(SADDR) -ostype $(UIMAGE_OS) $< $@
    43 
    44 clean:
    45         rm -f $(BIN_OUTPUT)
     52cd $_outdir
     53$TOOLS_DIR/mkarray.py "$_arg1" "$_arg2" "$_arg3" "$_arg4" $_inputs > /dev/null
Note: See TracChangeset for help on using the changeset viewer.