[Toybox] [PATCH] toybox: Make readelf aware of NT_ANDROID_TYPE_PAD_SEGMENT

2024-02-17 Thread Kalesh Singh via Toybox
Android includes a new note in of type NT_ANDROID_TYPE_PAD_SEGMENT [1], make readelf -n able to decode notes for this type. [1] https://cs.android.com/android/platform/superproject/main/+/main:bionic/libc/arch-common/bionic/crt_pad_segment.S Signed-off-by: Kalesh Singh --- toys/other/readelf.c

[Toybox] "make root" boots to shell prompt.

2020-04-29 Thread Rob Landley
1) Here is the build procedure building for the musl-cross-make cross compilers I've been testing against. git clone https://github.com/landley/toybox git clone https://github.com/richfelker/musl-cross-make cd musl-cross-make # use known good version with known good package version

Re: [Toybox] make tests

2019-01-07 Thread enh via Toybox
yeah, return works. patch attached (on the assumption that `return` also works on your older bash). On Fri, Dec 28, 2018 at 11:38 AM Rob Landley wrote: > > On 12/27/18 6:38 PM, enh wrote: > > On Thu, Dec 27, 2018 at 12:14 PM Rob Landley wrote: > >> If we're not in a loop, continue should throw

Re: [Toybox] make tests

2018-12-28 Thread dmccunney
On Fri, Dec 28, 2018 at 2:56 PM Rob Landley wrote: > On 12/27/18 6:38 PM, enh wrote: > > > the error is `continue: only meaningful in a 'for', 'while', or 'until' > > loop`. > > (there are 'until' loops?) > > I have no idea, but should probably look it up for toysh. Bash has until loops: http:/

Re: [Toybox] make tests

2018-12-28 Thread Rob Landley
On 12/27/18 6:38 PM, enh wrote: > On Thu, Dec 27, 2018 at 12:14 PM Rob Landley wrote: >> If we're not in a loop, continue should throw an error, then fall through to >> the >> exit. (That's what it does here...) You don't want to exit out of a loop >> because >> the loop will stop, but continue'

Re: [Toybox] make tests

2018-12-27 Thread enh via Toybox
On Thu, Dec 27, 2018 at 12:14 PM Rob Landley wrote: > > On 12/27/18 12:36 PM, enh wrote: > > what Linux is that? it's reproduceable for me on my two debian > > testing-based work machines and my personal xubuntu 18.04. (that's > > bash 4.4.12 and 4.4.19.) > > I think my laptop is still running ubu

Re: [Toybox] make tests

2018-12-27 Thread Rob Landley
On 12/27/18 12:36 PM, enh wrote: > what Linux is that? it's reproduceable for me on my two debian > testing-based work machines and my personal xubuntu 18.04. (that's > bash 4.4.12 and 4.4.19.) I think my laptop is still running ubuntu 14.04. (Last non-systemd version.) I downloaded a devuan insta

Re: [Toybox] make tests

2018-12-27 Thread enh via Toybox
what Linux is that? it's reproduceable for me on my two debian testing-based work machines and my personal xubuntu 18.04. (that's bash 4.4.12 and 4.4.19.) seems like the `continue` here isn't working: if [ "$(id -u)" -ne 0 ] then echo "$SHOWSKIP: chattr (not root)" continue 2>/dev/null exit

Re: [Toybox] make tests

2018-12-21 Thread Rob Landley
On 12/20/18 1:21 PM, enh via Toybox wrote: > i think the new chmod +x stuff broke `make tests`? seems to stop here: > > SKIP: chattr (not root) Hmmm... just finished for me on a clean checkout? make defconfig; make; make tests Rob ___ Toybox mailing

[Toybox] make tests

2018-12-20 Thread enh via Toybox
i think the new chmod +x stuff broke `make tests`? seems to stop here: SKIP: chattr (not root) ___ Toybox mailing list Toybox@lists.landley.net http://lists.landley.net/listinfo.cgi/toybox-landley.net

Re: [Toybox] Make Errors

2015-08-30 Thread Brent Hostetler
On Sun, Aug 30, 2015 at 9:59 PM, Isaac Dunham wrote: > Evidently, GCC 5.2, at least as shipped by your distro (Arch? I don't > know who else is that bleeding edge) has found a new way to break things: > > refuse to accept use of static variables in non-static inline functions. > > This is breaking

Re: [Toybox] Make Errors

2015-08-30 Thread Brent Hostetler
On Sun, Aug 30, 2015 at 10:45 PM, Rob Landley wrote: > > Does this fix it then? > > --- a/kconfig/zconf.hash.c_shipped > +++ b/kconfig/zconf.hash.c_shipped > @@ -159,9 +159,6 @@ static struct kconf_id_strings_t > kconf_id_strings_contents = > "enable" >}; > #define kconf_id_strings ((co

Re: [Toybox] Make Errors

2015-08-30 Thread Rob Landley
On 08/31/2015 12:06 AM, Isaac Dunham wrote: > On Sun, Aug 30, 2015 at 11:27:57PM -0500, Rob Landley wrote: >> On 08/30/2015 08:57 PM, Brent Hostetler wrote: >>> I could use some help trying to build toybox. >>> >>> >>> I have tried building the last three versions and get the same basic errors: >>>

Re: [Toybox] Make Errors

2015-08-30 Thread Isaac Dunham
On Sun, Aug 30, 2015 at 11:27:57PM -0500, Rob Landley wrote: > On 08/30/2015 08:57 PM, Brent Hostetler wrote: > > I could use some help trying to build toybox. > > > > > > I have tried building the last three versions and get the same basic errors: > > > > [rking@rkmini toybox-0.5.2]$ make defco

Re: [Toybox] Make Errors

2015-08-30 Thread Isaac Dunham
On Sun, Aug 30, 2015 at 06:57:42PM -0700, Brent Hostetler wrote: > I could use some help trying to build toybox. > > > I have tried building the last three versions and get the same basic errors: > > [rking@rkmini toybox-0.5.2]$ make defconfig > cc -o kconfig/conf kconfig/conf.c kconfig/zconf.ta

Re: [Toybox] Make Errors

2015-08-30 Thread Rob Landley
On 08/30/2015 08:57 PM, Brent Hostetler wrote: > I could use some help trying to build toybox. > > > I have tried building the last three versions and get the same basic errors: > > [rking@rkmini toybox-0.5.2]$ make defconfig > cc -o kconfig/conf kconfig/conf.c kconfig/zconf.tab.c -DKBUILD_NO_NL

[Toybox] Make Errors

2015-08-30 Thread Brent Hostetler
I could use some help trying to build toybox. I have tried building the last three versions and get the same basic errors: [rking@rkmini toybox-0.5.2]$ make defconfig cc -o kconfig/conf kconfig/conf.c kconfig/zconf.tab.c -DKBUILD_NO_NLS=1 \ -DPROJECT_NAME=\"ToyBox\" In file included from

Re: [Toybox] make menuconfig

2015-05-05 Thread Rob Landley
On 05/04/2015 03:47 PM, Felix Janda wrote: >> i did notice one bug though --- the -Z help gets output part way >> through the --color output: >> >> --color device=yellow symlink=turquoise/red dir=blue socket=purple >> -Z security context >> files: exe=green suid=red suidfile=redback

Re: [Toybox] make menuconfig

2015-05-05 Thread Rob Landley
On 05/04/2015 03:25 PM, enh wrote: > On Mon, May 4, 2015 at 10:57 AM, Felix Janda wrote: >> Rob Landley wrote: >>> On 05/02/2015 02:54 PM, enh wrote: anyone else having trouble with "make menuconfig"? getprop and setprop aren't showing up for me, and i don't see where to set CONFIG_

Re: [Toybox] make menuconfig

2015-05-05 Thread Rob Landley
On 05/04/2015 12:57 PM, Felix Janda wrote: > Rob Landley wrote: >> On 05/02/2015 02:54 PM, enh wrote: >>> anyone else having trouble with "make menuconfig"? getprop and setprop >>> aren't showing up for me, and i don't see where to set >>> CONFIG_TOYBOX_ON_ANDROID and generated/mkflags segfaults

Re: [Toybox] make menuconfig

2015-05-04 Thread Felix Janda
enh wrote: > On Mon, May 4, 2015 at 10:57 AM, Felix Janda wrote: [..] > > I just wanted to say that not everything is yet fixed. For example > > 'ls --color' does not work at all. (Seems to be related to the option > > parsing.) > > works for me. are you sure you have LS_COLOR configured? CONFIG

Re: [Toybox] make menuconfig

2015-05-04 Thread enh
On Mon, May 4, 2015 at 10:57 AM, Felix Janda wrote: > Rob Landley wrote: >> On 05/02/2015 02:54 PM, enh wrote: >> > anyone else having trouble with "make menuconfig"? getprop and setprop >> > aren't showing up for me, and i don't see where to set >> > CONFIG_TOYBOX_ON_ANDROID and generated/mkflags

Re: [Toybox] make menuconfig

2015-05-04 Thread Felix Janda
Rob Landley wrote: > On 05/02/2015 02:54 PM, enh wrote: > > anyone else having trouble with "make menuconfig"? getprop and setprop > > aren't showing up for me, and i don't see where to set > > CONFIG_TOYBOX_ON_ANDROID and generated/mkflags segfaults if i have ls > > configured and... > > > > actu

Re: [Toybox] make menuconfig

2015-05-03 Thread enh
thanks, mkflags is working now. i still need this to build "defconfig" out of the box at your ToT on glibc though: Fix glibc build. ./lib/portability.h:265:1: error: unknown type name 'ssize_t' ssize_t fgetxattr (int fd, char *name, void *value, size_t size); diff --git a/lib/portability.h b/li

Re: [Toybox] make menuconfig

2015-05-03 Thread Rob Landley
On 05/02/2015 02:54 PM, enh wrote: > anyone else having trouble with "make menuconfig"? getprop and setprop > aren't showing up for me, and i don't see where to set > CONFIG_TOYBOX_ON_ANDROID and generated/mkflags segfaults if i have ls > configured and... > > actually, downloading a clean toybox

Re: [Toybox] make menuconfig

2015-05-03 Thread Rob Landley
On 05/02/2015 11:47 PM, Isaac Dunham wrote: > On Sat, May 02, 2015 at 10:30:36PM -0500, Rob Landley wrote: >> On 05/02/2015 02:54 PM, enh wrote: >>> anyone else having trouble with "make menuconfig"? getprop and setprop >>> aren't showing up for me, and i don't see where to set >>> CONFIG_TOYBOX_ON

Re: [Toybox] make menuconfig

2015-05-02 Thread Isaac Dunham
On Sat, May 02, 2015 at 10:30:36PM -0500, Rob Landley wrote: > On 05/02/2015 02:54 PM, enh wrote: > > anyone else having trouble with "make menuconfig"? getprop and setprop > > aren't showing up for me, and i don't see where to set > > CONFIG_TOYBOX_ON_ANDROID and generated/mkflags segfaults if i h

Re: [Toybox] make menuconfig

2015-05-02 Thread Rob Landley
On 05/02/2015 02:54 PM, enh wrote: > anyone else having trouble with "make menuconfig"? getprop and setprop > aren't showing up for me, and i don't see where to set > CONFIG_TOYBOX_ON_ANDROID and generated/mkflags segfaults if i have ls > configured and... Sorry, my recent ls checkin screwed it up

[Toybox] make menuconfig

2015-05-02 Thread enh
anyone else having trouble with "make menuconfig"? getprop and setprop aren't showing up for me, and i don't see where to set CONFIG_TOYBOX_ON_ANDROID and generated/mkflags segfaults if i have ls configured and... actually, downloading a clean toybox git repo, "make defconfig && make" reproduces t

Re: [Toybox] make

2015-01-23 Thread Daniel Cegiełka
Proposals such as awk, tcl or python does not make sense, if you still need the GNU make, to compile the kernel, musl etc. + tcl/python as deps... Let us define the problem: we do not want GNU make ('allergic to its license'). Requirements: the ability to compile the _linux_ kernel, musl etc. In

Re: [Toybox] make

2015-01-23 Thread stephen Turner
> > There are BSD make programs, but they're not compatible with makefiles > written for GNU make. I'm generally opposed to use of GNU extensions, > but in the case of make, they give it a lot more power to be used in > the way it _should_ be used: to describe the build process in a > declarative m

Re: [Toybox] make

2015-01-23 Thread Isaac Dunham
On Fri, Jan 23, 2015 at 04:08:08AM -0600, Rob Landley wrote: > But tcl is out of scope. (And only seems to be used for two things: > tcl/tk graphics whatsis that python finally mostly weaned itself off of, > and expect.) > > > I recommend Brent Welch's "Practical Programming in Tcl and Tk" from >

Re: [Toybox] make

2015-01-23 Thread enh
On Fri, Jan 23, 2015 at 2:08 AM, Rob Landley wrote: > On 01/22/2015 10:15 AM, dmccunney wrote: >> On Thu, Jan 22, 2015 at 10:54 AM, stephen Turner >> wrote: >>> so Gnu make isnt bad but it isnt that great either, I found what looks like >>> it might be a nice little make program but the depressin

Re: [Toybox] make

2015-01-23 Thread Rich Felker
On Thu, Jan 22, 2015 at 10:54:46AM -0500, stephen Turner wrote: > so Gnu make isnt bad but it isnt that great either, I found what looks like > it might be a nice little make program but the depressing down side is it > uses a new language tcl. its so simple! I dont understand why stuff like > this

Re: [Toybox] make

2015-01-23 Thread Rob Landley
On 01/22/2015 10:15 AM, dmccunney wrote: > On Thu, Jan 22, 2015 at 10:54 AM, stephen Turner > wrote: >> so Gnu make isnt bad but it isnt that great either, I found what looks like >> it might be a nice little make program but the depressing down side is it >> uses a new language tcl. its so simple

Re: [Toybox] make

2015-01-23 Thread Martin Kühl
On Thu, Jan 22, 2015 at 4:54 PM, stephen Turner wrote: > so Gnu make isnt bad but it isnt that great either, I found what looks like > it might be a nice little make program but the depressing down side is it > uses a new language tcl. its so simple! I dont understand why stuff like > this doesnt

Re: [Toybox] make

2015-01-23 Thread stephen Turner
> > > > > am i missing something or is gnu make the only Makefile processing make > > program without adding additional dependencies like perl? > > Another popular alternative is Scons (http://www.scons.org/), but > Scons requires Python. > > Wikipedia has a list of build automation software - > ht

Re: [Toybox] make

2015-01-22 Thread dmccunney
On Thu, Jan 22, 2015 at 10:54 AM, stephen Turner wrote: > so Gnu make isnt bad but it isnt that great either, I found what looks like > it might be a nice little make program but the depressing down side is it > uses a new language tcl. its so simple! I dont understand why stuff like > this doesnt

[Toybox] make

2015-01-22 Thread stephen Turner
so Gnu make isnt bad but it isnt that great either, I found what looks like it might be a nice little make program but the depressing down side is it uses a new language tcl. its so simple! I dont understand why stuff like this doesnt catch on unless its not as good as they are making it out to be?