Changeset 32b4302 in mainline for tools/mkarray_for_meson.sh


Ignore:
Timestamp:
2019-08-18T19:06:02Z (7 years ago)
Author:
GitHub <noreply@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1c39d33b
Parents:
fa70134 (diff), 6c2fac18 (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:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-08-18 19:06:02)
git-committer:
GitHub <noreply@…> (2019-08-18 19:06:02)
Message:

Merge pull request #174 from le-jzr/meson3

Convert HelenOS build system to Meson

File:
1 moved

Legend:

Unmodified
Added
Removed
  • tools/mkarray_for_meson.sh

    • Property mode changed from 100644 to 100755
    rfa70134 r32b4302  
     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.