- Install ptxdist itself and a suitable toolchain as described in the documentation
- Create an empty BSP folder
- Create the subfolders
configsandconfigs/platform-foo(replace foo by something more sensible like v7a or x86_64) - Create empty files
configs/ptxconfigandconfigs/platform-foo/platformconfig - Call
ptxdist-2023.03.0 --force menu(or whatever version you installed in step 1, be sure to call the binary including the version number) - Select
menuconfig, do some changes, save - Select
platformconfig, do some changes, save
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/perl -w | |
| # on debian install packages: | |
| # libjson-perl, libwww-perl, perl-modules, perl-base | |
| use strict; | |
| use warnings; | |
| use Carp; | |
| #use Data::Dumper; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [core] | |
| repositoryformatversion = 0 | |
| filemode = true | |
| bare = false | |
| logallrefupdates = true | |
| [remote "upstream"] | |
| url = http://git.pengutronix.de/git/ptxdist.git | |
| fetch = +refs/heads/*:refs/remotes/upstream/* | |
| [branch "master"] | |
| remote = origin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Colours and font styles | |
| ## Syntax: echo -e "${FOREGROUND_COLOUR}${BACKGROUND_COLOUR}${STYLE}Hello world!${RESET_ALL}" | |
| # Escape sequence and resets | |
| ESC_SEQ="\x1b[" | |
| RESET_ALL="${ESC_SEQ}0m" | |
| RESET_BOLD="${ESC_SEQ}21m" | |
| RESET_UL="${ESC_SEQ}24m" | |
| # Foreground colours |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ---------------------------------------------------------------------- | |
| # quick and dirty color helping stuff | |
| # ---------------------------------------------------------------------- | |
| ESC_START='\033[' | |
| ESC_SEP=';' | |
| ESC_END='m' | |
| COL_RST="${ESC_START}0${ESC_END}" | |
| COL_BOLD='1' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .-----------------. no | |
| | session exists |-----------------. | |
| '-----------------' | | |
| | yes | | |
| v v | |
| .-----------------. yes .-------------------. | |
| | session expired |------>| redirect to login | | |
| '-----------------' '-------------------' | |
| | no ^ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <unistd.h> | |
| int main( int argc, char *argv[] ) | |
| { | |
| char c = '-'; | |
| printf( "throbber: [-]" ); | |
| while ( 1 ) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| % what_eth_drivers.sh | |
| br0 [ac:22:0b:c3:cd:2a]: (up) | |
| docker0 [02:42:6b:bb:b4:67]: (down) | |
| enp3s0 [ac:22:0b:c3:cd:2a]: r8169 (up) | |
| enp5s0 [00:01:02:d8:91:07]: 3c59x (unknown) | |
| enx00e04c6800e5 [00:e0:4c:68:00:e5]: r8152 (down) | |
| lo [00:00:00:00:00:00]: (unknown) | |
| vmnet1 [00:50:56:c0:00:01]: (unknown) | |
| vmnet8 [00:50:56:c0:00:08]: (unknown) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # This generates lore-friendly message-id headers that are safe, unique, and | |
| # provide better UX for someone using lore to retrieve messages. | |
| # | |
| # Instructions for using with mutt/neomutt: | |
| # | |
| # Save this as ~/bin/my-gen-msgid, then add ~/.mutt-fix-msgid with the following, | |
| # fixing your path to the file: | |
| # | |
| # my_hdr Message-ID: <`/home/user/bin/my-gen-msgid`> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| SCRIPTDIR=$(dirname "${0}") | |
| PTXDIST_SRC=$1 | |
| PTXDIST_VER_FROM=$2 | |
| PTXDIST_VER_TO=$3 | |
| PTXDIST_BASEDIR='/usr/local/lib' | |
| PTXDIST_TOPDIR="$(ptxdist print PTXDIST_TOPDIR)" | |
| PTXDIST_WORKSPACE="$(ptxdist print PTXDIST_WORKSPACE)" |