<feed xmlns='http://www.w3.org/2005/Atom'>
<title>talos-skiboot/external/shared, branch master</title>
<subtitle>Talos™ II skiboot sources</subtitle>
<id>https://git.raptorcs.com/git/talos-skiboot/atom?h=master</id>
<link rel='self' href='https://git.raptorcs.com/git/talos-skiboot/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/'/>
<updated>2016-09-22T06:22:40+00:00</updated>
<entry>
<title>external: Utilize DESTDIR in shared makefile</title>
<updated>2016-09-22T06:22:40+00:00</updated>
<author>
<name>Patrick Williams</name>
<email>patrick@stwcx.xyz</email>
</author>
<published>2016-08-05T21:56:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=03b21dc7a1cf8da546250a99c76c2cbb34d2da39'/>
<id>urn:sha1:03b21dc7a1cf8da546250a99c76c2cbb34d2da39</id>
<content type='text'>
Signed-off-by: Patrick Williams &lt;patrick@stwcx.xyz&gt;
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>Adopt libtool rules for soname versioning for libflash</title>
<updated>2016-08-01T08:50:25+00:00</updated>
<author>
<name>Stewart Smith</name>
<email>stewart@linux.vnet.ibm.com</email>
</author>
<published>2016-08-01T08:50:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=5944cc73defa1464ae2aa58be91bcb805cd71b79'/>
<id>urn:sha1:5944cc73defa1464ae2aa58be91bcb805cd71b79</id>
<content type='text'>
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>pflash: Clean up makefiles and resolve build race</title>
<updated>2016-07-27T08:08:45+00:00</updated>
<author>
<name>Joel Stanley</name>
<email>joel@jms.id.au</email>
</author>
<published>2016-07-22T13:47:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=c327eddd9b291a0e6e54001fa3b1e547bad3fca2'/>
<id>urn:sha1:c327eddd9b291a0e6e54001fa3b1e547bad3fca2</id>
<content type='text'>
The pflash build process has regressed from when the were last fixed in
6c21c4ffaf82.

This patch resolves that issue and performs some cleanups:

 - Remove duplicated rules. Patches had moved rules into common files,
   but forgotten to remove them from the pflash makefiles.

 - Make assignements simply expanded variables where possible. Form the
   make manual:

     Functions referenced in the definition will be executed every time
     the variable is expanded.  This makes make run slower; worse, it
     causes the wildcard and shell functions to give unpredictable
     results because you cannot easily control when they are called, or
     even how many times.

     To avoid all the problems and inconveniences of recursively
     expanded variables, there is another flavor: simply expanded
     variables.

 - set the 'shared' target as a dependency of the libflash objects. This
   was the final piece to resolve the race condition.

The failed build could be reproduced by doing a `git clean -f -x` and
then running the following:

  $ make -j 32 CROSS_COMPILE=arm-linux-gnueabi- SKIBOOT_VERSION=5.2.4
  PFLASH_VERSION=5.2.4 V=1 -C external/pflash all LINKAGE=dynamic
  make: Entering directory '/home/joel/dev/skiboot/external/pflash'
  ln -sf ../../libflash ./libflash
  ln -sf ../../ccan ./ccan
  ln -sf ../common ./common
  cc -O2 -Wall -I. -c pflash.c -o pflash.o
  cc -O2 -Wall -I. -c progress.c -o progress.o
  make -C ../shared
  make[1]: Entering directory '/home/joel/dev/skiboot/external/shared'
  ln -sf ../../hw/ast-bmc/ast-sf-ctrl.c common/ast-sf-ctrl.c
  ln -sf ../../include/ast.h common/ast.h
  ln -sf arch_flash_arm_io.h common/io.h
  cc -O2 -Wall -I.  -c common/arch_flash_common.c -o
  common-arch_flash_common.o
  cc -O2 -Wall -I.  -c common/arch_flash_arm.c -o common-arch_flash_arm.o
  cc -O2 -Wall -I.  -c common/ast-sf-ctrl.c -o common-ast-sf-ctrl.o
  cc -O2 -Wall -I. -c version.c -o version.o
  ld -r common-arch_flash_common.o common-arch_flash_arm.o
  common-ast-sf-ctrl.o -o common-arch_flash.o
  ln -sf ../../libflash ./libflash
  ln -sf ../../ccan ./ccan
  ln -sf ../common ./common
  make[1]: *** No rule to make target 'libflash/file.c', needed by
  'libflash-file.o'.  Stop.
  make[1]: *** Waiting for unfinished jobs....
  make[1]: Leaving directory '/home/joel/dev/skiboot/external/shared'
  rules.mk:25: recipe for target
  '../shared/libflash.so.skiboot-5.2.4-1-g9f13f64c322f-joel-dirty-d5873ce'
  failed
  make: ***
  [../shared/libflash.so.skiboot-5.2.4-1-g9f13f64c322f-joel-dirty-d5873ce]
  Error 2

Signed-off-by: Joel Stanley &lt;joel@jms.id.au&gt;
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>external: Create shared rules.mk</title>
<updated>2016-06-07T08:28:25+00:00</updated>
<author>
<name>Brad Bishop</name>
<email>bradleyb@fuzziesquirrel.com</email>
</author>
<published>2016-05-26T14:47:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=45e548176e16ad8ba9540fcd75131ba4993e42b7'/>
<id>urn:sha1:45e548176e16ad8ba9540fcd75131ba4993e42b7</id>
<content type='text'>
Building a dynamically linked pflash will need the shared library
name.  Export it here.

Signed-off-by: Brad Bishop &lt;bradleyb@fuzziesquirrel.com&gt;
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>external: Remove -m64 from shared CFLAGS on ARM</title>
<updated>2016-06-07T07:00:33+00:00</updated>
<author>
<name>Brad Bishop</name>
<email>bradleyb@fuzziesquirrel.com</email>
</author>
<published>2016-05-26T14:47:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=e415b3b9bf0441745f442e12bfce25ed49c589bf'/>
<id>urn:sha1:e415b3b9bf0441745f442e12bfce25ed49c589bf</id>
<content type='text'>
-m64 isn't an ARM flag.

Signed-off-by: Brad Bishop &lt;bradleyb@fuzziesquirrel.com&gt;
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>external: Remove external/shared link targets</title>
<updated>2016-06-07T05:20:31+00:00</updated>
<author>
<name>Brad Bishop</name>
<email>bradleyb@fuzziesquirrel.com</email>
</author>
<published>2016-05-26T01:54:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=7c7911eb7bea505474c3062bf5b0c60d99b502a5'/>
<id>urn:sha1:7c7911eb7bea505474c3062bf5b0c60d99b502a5</id>
<content type='text'>
These are already defined just like we need them in common/rules.mk

Signed-off-by: Brad Bishop &lt;bradleyb@fuzziesquirrel.com&gt;
Reviewed-by: Joel Stanley &lt;joel@jms.id.au&gt;
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>pflash: Allow building under yocto.</title>
<updated>2016-04-18T03:45:41+00:00</updated>
<author>
<name>Patrick Williams</name>
<email>patrick@stwcx.xyz</email>
</author>
<published>2016-04-14T17:54:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=3137d249ba10ad6fa7a52486cdacddfab7419189'/>
<id>urn:sha1:3137d249ba10ad6fa7a52486cdacddfab7419189</id>
<content type='text'>
The makefiles under external/* utilize the $(CROSS_COMPILE) variable
to determine the cross-compiler prefix.  In a few places,
$(CROSS_COMPILE)gcc is called instead of $(CC).  The issue with this is
that yocto build passes some compile flags as part of $(CC) instead of
$(CFLAGS), the most important of these is '--sysroot=...'.  Without the
proper --sysroot flag, pflash compile fails to find critical libc
headers like stdio.h.

This change delegates setting of $(CC) and $(LD) to
external/common/rules.mk, which is widely used in the external tree, and
ensures that:
    1) $(CC) is used instead of $(CROSS_COMPILE)gcc.
    2) CC is only set when not passed from the environment.

Signed-off-by: Patrick Williams &lt;patrick@stwcx.xyz&gt;
Reviewed-by: Joel Stanley &lt;joel@jms.id.au&gt;
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>external: Add Makefile targets to install libflash</title>
<updated>2016-01-15T04:46:25+00:00</updated>
<author>
<name>Samuel Mendoza-Jonas</name>
<email>sam.mj@au1.ibm.com</email>
</author>
<published>2016-01-06T04:28:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skiboot/commit/?id=b2649b822ab57ab06f0028d8343320ae6e11cc50'/>
<id>urn:sha1:b2649b822ab57ab06f0028d8343320ae6e11cc50</id>
<content type='text'>
This adds a Makefile under external/shared to build libflash as a
shared library and install it.
This allows programs outside of the skiboot tree to link against
libflash in order to access MTD devices (eg. Petitboot).

Signed-off-by: Samuel Mendoza-Jonas &lt;sam.mj@au1.ibm.com&gt;
Signed-off-by: Stewart Smith &lt;stewart@linux.vnet.ibm.com&gt;
</content>
</entry>
</feed>
