summaryrefslogtreecommitdiffstats
path: root/Makefile.am
Commit message (Collapse)AuthorAgeFilesLines
* tests: Add path based selection testsAmitay Isaacs2018-11-161-0/+1
| | | | | Signed-off-by: Amitay Isaacs <amitay@ozlabs.org> Tested-by: Alistair Popple <alistair@popple.id.au>
* path: Add device tree path based targetingAmitay Isaacs2018-11-161-0/+2
| | | | | Signed-off-by: Amitay Isaacs <amitay@ozlabs.org> Reviewed-by: Alistair Popple <alistair@popple.id.au>
* util: Move parse_list() into a separate fileAmitay Isaacs2018-11-161-1/+3
| | | | | | | ... and document the function. Signed-off-by: Amitay Isaacs <amitay@ozlabs.org> Reviewed-by: Alistair Popple <alistair@popple.id.au>
* libpdbg: Remove device.hAlistair Popple2018-11-091-1/+0
| | | | | Signed-off-by: Alistair Popple <alistair@popple.id.au> Reviewed-by: Amitay Isaacs <amitay@ozlabs.org>
* build: Allow device tree headers to be generated in subdirsAmitay Isaacs2018-11-091-2/+2
| | | | | | | Using dts avoids unnecessary prefixes in case building device tree headers in subdirs. Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
* libpdbg: Add xbus hardware unitAlistair Popple2018-11-091-1/+2
| | | | Signed-off-by: Alistair Popple <alistair@popple.id.au>
* Makefile: Order the libraries for make install to workAmitay Isaacs2018-11-071-1/+1
| | | | Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
* Makefile: Package src/gdb_parser.rlAmitay Isaacs2018-11-071-0/+1
| | | | Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
* Makefile: Redefine sources required for gdbserverAmitay Isaacs2018-11-071-8/+5
| | | | Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
* Makefile: Define arch dependent sources explicitlyAmitay Isaacs2018-11-071-1/+10
| | | | | | This enables "make dist" to include all the arch sources. Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
* Makefile: Add missing headers to pdbg_SOURCESAmitay Isaacs2018-11-071-0/+7
| | | | Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
* Makefile: Keep pdbg sources sortedAmitay Isaacs2018-11-071-9/+9
| | | | Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
* Makefile: Add missing header file in libpdbg_SOURCESAmitay Isaacs2018-11-071-0/+1
| | | | Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
* Makefile: Keep libpdbg sources sortedAmitay Isaacs2018-11-071-15/+16
| | | | Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
* Makefile: Keep libfdt sources sortedAmitay Isaacs2018-11-071-6/+6
| | | | Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
* Makefile: Install libpdbg header libpdbg.hAmitay Isaacs2018-11-071-0/+2
| | | | Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
* pdbg/gdbserver: Make gdbserver optionalRashmica Gupta2018-11-021-10/+13
| | | | | Signed-off-by: Rashmica Gupta <rashmica.g@gmail.com> Signed-off-by: Alistair Popple <alistair@popple.id.au>
* pdbg/gdbserver: Make ragel optionalAlistair Popple2018-11-021-0/+6
| | | | | | | | Add in the generated c file so if the build system doesn't have ragel gdbserver can still be built. Signed-off-by: Rashmica Gupta <rashmica.g@gmail.com> Signed-off-by: Alistair Popple <alistair@popple.id.au>
* pdbg/gdbserver: Add in basic skeleton for a gdbserver on p8Rashmica Gupta2018-11-021-2/+11
| | | | | | | | I have changed a few bits here and there but this patch is largely authored by Alistair Popple. Signed-off-by: Rashmica Gupta <rashmica.g@gmail.com> Signed-off-by: Alistair Popple <alistair@popple.id.au>
* build: Add explicit dependency of libfdt for libpdbgAmitay Isaacs2018-10-261-2/+3
| | | | Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
* Makefile.am: Remove -DHAVE_LITTLE_ENDIANAlistair Popple2018-09-071-2/+2
| | | | | | | | Commit 77158819158d ("device: remove use of ccan's endian") converted to using libc functions for providing endian conversion. These don't rely on having HAVE_[BIG|LITTLE]_ENDIAN defined so remove the definitions. Signed-off-by: Alistair Popple <alistair@popple.id.au>
* build: Add dummy target to build test binariesAmitay Isaacs2018-09-071-0/+2
| | | | Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
* tests: Add tests for libpdbg probe functionsAmitay Isaacs2018-09-071-1/+21
| | | | Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
* tests: Add tests for libpdbg target functionsAmitay Isaacs2018-09-071-2/+15
| | | | Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
* build: Add explicit dependency for device-tree headersAmitay Isaacs2018-09-071-2/+2
| | | | | | This ensures that device tree headers are built only when required. Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
* tests: Add bmc hw testsAlistair Popple2018-09-071-1/+2
| | | | | | | | | | | | | | | Reworked bmc hw test based on the updates to the test driver. This uses .test.bmc file to set up environment for the tests. Following variables are needed: BMC_HOST BMC_USER BMC_PASS PDBG_ARM_BUILD Signed-off-by: Alistair Popple <alistair@popple.id.au> Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
* main: Add P8 kernel devicetreeBenjamin Herrenschmidt2018-09-071-1/+2
| | | | | | | This makes palmettos use kernel backend on bmc using coldfire driver. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
* tests: Add target selection testsAmitay Isaacs2018-08-131-2/+6
| | | | Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
* tests: Add simple shell test driversAmitay Isaacs2018-08-131-1/+7
| | | | Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
* configure: Enable testsAmitay Isaacs2018-08-131-1/+3
| | | | Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
* Makefile: Package non-source filesAmitay Isaacs2018-08-021-0/+16
| | | | Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
* Makefile: Package ccan filesAmitay Isaacs2018-08-021-1/+15
| | | | Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
* Makefile: Do not install test programsAmitay Isaacs2018-08-021-1/+2
| | | | Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
* Makefile: Avoid warnings if not in a git treeAmitay Isaacs2018-08-021-1/+1
| | | | Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
* Makefile: Include header files for each targetAmitay Isaacs2018-08-021-3/+21
| | | | | | | This will ensure that "make dist" packages all the required files. Also, "make ctags" will include tags from header files. Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
* pdbg: Use new command parsingAlistair Popple2018-06-251-0/+1
| | | | | | | | | This switches all commands except the htm command to use the new command/option parsing code. For the moment we leave the usage help and generic targeting flag processing alone, but future changes should allow this to also use the common parsing code. Signed-off-by: Alistair Popple <alistair@popple.id.au>
* optcmd: Add testsAlistair Popple2018-06-251-1/+4
| | | | | | | | We don't really have infrastructure in place to easily add/build/run tests, but that shouldn't stop them being written. This adds some basic tests of the argument parsing logic. Signed-off-by: Alistair Popple <alistair@popple.id.au>
* pdbg: Add command/flag parsing definitionsAlistair Popple2018-06-251-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | Add code to support command argument and flag parsing. A future patch will update existing code to use these parsers. The idea behind this code is to allow easily calling C functions from the command line without requiring shim/boilerplate functions to marshal arguments and flags which can be repetitive and error prone. In general a command consists of positional arguments and non-positional flags which optionally take arguments as shown below: cmd_name <arg1> <arg2> ... <argN> --flag1=<arg?> --flag2 ... --flagM It supports default values for the last N postional arguments which allows trailing arguments to be made optional. The above definition allows a function with the following prototype to be called directly without any manual shim code: cmd_name(arg1, arg2, ... argN, flags) Where `flags` is a struct defined elsewhere containing fields which will match with the flag specification. Signed-off-by: Alistair Popple <alistair@popple.id.au>
* Makefile: Add dependencies for p9-fsi.dtsiAmitay Isaacs2018-06-041-0/+1
| | | | | Signed-off-by: Amitay Isaacs <amitay@ozlabs.org> Reviewed-by: Alistair Popple <alistair@popple.id.au>
* Makefile: Add p9-fsi.dtsi to the list of files to cleanJoel Stanley2018-06-011-1/+1
| | | | | | | This file was not being removed by make clean. Signed-off-by: Joel Stanley <joel@jms.id.au> Acked-by: Balbir Singh <bsingharora@gmail.com>
* Makefile: Don't suppress warnings from DTCAmitay Isaacs2018-05-241-2/+2
| | | | Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
* Makefile.am: Add -lrt to LDFLAGSAlistair Popple2018-05-221-1/+1
| | | | | | | Otherwise we get an undefined reference to clock_gettime when using certain cross compilers. Signed-off-by: Alistair Popple <alistair@popple.id.au>
* Makefile: Pretty print dts files via dtcAmitay Isaacs2018-05-181-1/+1
| | | | Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
* Makefile: Generate all device-tree source filesAmitay Isaacs2018-05-181-5/+5
| | | | | | This will allow to generate pretty printed dts files. Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
* main: Conditionally build device trees based on archAmitay Isaacs2018-05-181-4/+14
| | | | Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
* main: Use auto-generated device tree headersAmitay Isaacs2018-05-181-1/+3
| | | | Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
* Makefile: Add rule to generate device tree header fileAmitay Isaacs2018-05-181-0/+8
| | | | Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
* Makefile: Separate the list of device tree sourcesAmitay Isaacs2018-05-181-3/+7
| | | | Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
* libpdbg: Add logging apiAmitay Isaacs2018-05-181-1/+2
| | | | | | To avoid churn define short-cut macros for logging using PR_ prefix. Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
* Makefile: No need to include Makefile.libfdtAmitay Isaacs2018-05-181-2/+0
| | | | Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
OpenPOWER on IntegriCloud